typecasting json data to model code example Example: json to object typescript let obj: MyObj = JSON.parse('{ "myString": "string", "myNumber": 4 }');