typescript set json object code example Example: json to object typescript Click to copylet obj: MyObj = JSON.parse('{ "myString": "string", "myNumber": 4 }');