I have a JSON file. When I encoded and decoded it, it gives me a resultset like below:
{
"_id": 519188,
"name": "Novinki",
"country": "RU",
"coord": {
"lon": 37.666668,
"lat": 55.683334
}
}
How can I get the values from that?
I have a JSON file. When I encoded and decoded it, it gives me a resultset like below:
{
"_id": 519188,
"name": "Novinki",
"country": "RU",
"coord": {
"lon": 37.666668,
"lat": 55.683334
}
}
How can I get the values from that?
If you are working with javascript, you need to store the contents of json file into a javascript variable. From there you can easily access the values.
eg:- var someVariable = decodedFileContent;
var id = someVariable._id;
Hope it helps.Give more information.