Re: Thinking out loud - a continuation...
| From: | Jay Blanchard | Date: | Mon, 26 Mar 2012 18:26:25 +0000 |
| Subject: | Re: Thinking out loud - a continuation... | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317276@lists.php.net to get a copy of this message | ||
[snip]
> Square brackets in JSON represent arrays. Take their JSON, run it through json_decode, and
> assuming it decodes correctly compare the structure to what you already have. You should then be
> able to modify what you have so it generates JSON in the format they are expecting.
[/snip]
Done. I knew about the square brackets. In the code being used the array, if blank, gets square
brackets. For some reason an array containing actual data does not.