Reputation: 235
Hi I have an ajax call which returns a json string which consists of -
"{"d":
[
{"path":"/","e_type":"d ","text":"/"},
{"path":"//SQL","e_type":"d ","text":"//SQL"},
{"path":"//SQL/SourceClips","e_type":"d ","text":"//SQL/SourceClips"},
{"path":"//SQL/SourceClips/kjpDNxHD145_MC403.mov","e_type":"f ", "text":"//SQL/SourceClips/kjpDNxHD145_MC403.mov"}
]
}"
I am trying to format this so there are 3 objects and one object inside the 3rd object. I want to use a loop so i can reuse this for any data I return.
Currently that is fine as far as printing each item on separate lines but i am trying to nest the last item into the third item.
Any help would be very appreciated.
Upvotes: 0
Views: 68