I am using Javascript to encode data with json... and using PHP to decode this data with json_decode();
My JSON looks like this:
When I do json_decode, it doesn't work
The reason why, is because of the "0":, "1": etc
Usually, json is not encoded with {"0":{"url":"http://www.businessinsider.com
but rather, just {"url":"http://www.businessinsider.com
without the "{0":
What is your solution for this??
Can PHP decode the "{0":
Or, is the solution to strip the "{0": altogether...? If so, how would I do this?
Thanks