Hello there!
I use Ajax to access a servers API. The problem is that I do not receive the data as JSON but as an array.
It looks like this:
{"data":[{"id":543422,"name":"This is a name","type":"Normal"}]}
Maybe I'm stupid but I have a hard time figuring out how I can access for example JSON.Get(".id"). How can I access the JSON data?
(PS: I hate arrays and love JSON >:O)
Edit:
After a lot of testing I figured it out.
"data.0.id" will access the id in this case.