0

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?

Harry
  • 87,580
  • 25
  • 202
  • 214

1 Answers1

0

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.

Vikas Sharma
  • 745
  • 9
  • 19