How to access location properties from the following code (JSON Structure) and assign the value in Nodejs.
{ pos : { lon : 30, lat : 30 } }
Thanks
If you have the JSON in a string variable, you can use
var json = JSON.parse(theString);
And then acces it by
json.pos.lon;