0

I have a below JSON object how can i access data with jquery?Do we need to parse it

JSON

{
    "1": {
        "Name": "john ",
        "age": 32
    },
    "2": {
        "Name": "David ",
        "age": 30
    },
    "3": {
        "Name": "Maxim ",
        "age": 35
    }

}
hareesh
  • 37
  • 7
  • 3
    Please read [How To Ask](https://stackoverflow.com/help/how-to-ask). This question is too broad, provides no attempt at a solution of your own, it's a duplicate, it's unclear... the list can go on and on. – Tyler Roper Apr 26 '17 at 17:02
  • there have multiple threads about this topic , u can find those things by search. and what u need to do here. what u really expect? – Sachith Wickramaarachchi Apr 26 '17 at 17:04

1 Answers1

1

I have solved your question with javascript in this fiddle:-

    var json = { "1": { "Name": "john ", "age": 32 }, "2": { "Name": "David ", "age": 30 }, "3": { "Name": "Maxim ", "age": 35 }};

    for(var i in json){
       console.log(json[i].Name);
    }

https://jsfiddle.net/vtgm3489/

Muhammad Umar
  • 349
  • 3
  • 14