Hi Guy, I've this simple data and I want to use it: [ {id: 1, name: 'John Smith' } ] Code (markup): So how do I get the id or the name out of this set of data. Thank you,
It's not mandatory, the only JSON there is within {}. The outer brackets are an array, typically sent like that because they receive an array of JSON items.
Hence the quotes... for some reason a LOT of people seem to add it and claim you have to. Yes, it makes no sense. I should have implied a more sarcastic tone.