how get data from json from json object in js code example
Example 1: convert string to object javascript
var mystr = '{ "hello":"world" }' // NB: Has enclosing ""
var myobj = JSON.parse(mystr);
Example 2: json example
{ "name":"John", "age":30, "car":null }