Check out example codes for "json to object typescript". It will help you in understanding the concepts better.

Code Example 1

let obj: MyObj = JSON.parse('{ "myString": "string", "myNumber": 4 }');

Learn ReactJs, React Native from akashmittal.com