Jump to content

KingNeil

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by KingNeil

  1. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.