Re: Thinking out loud - a continuation...
| From: | Daniel Brown | Date: | Wed, 21 Mar 2012 19:45:55 +0000 |
| Subject: | Re: Thinking out loud - a continuation... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317165@lists.php.net to get a copy of this message | ||
On Wed, Mar 21, 2012 at 14:39, Jay Blanchard
<jay.blanchard@sigmaphinothing.org> wrote:
[snip!]
> I ran it through json_encode() and got the following output
>
>
> {"John":{"email":"john@demo.com","website":"www.john.com","age":"22","password":"pass","description":{"hair":"blonde","eyes":"blue","build":"medium"}},"Anna":{"email":"anna@demo.com","website":"www.anna.com","age":"24","password":"pass","description":{"hair":"brunette","eyes":"hazel","build":"petite"}}}
>
> jslint.com verifies this as good JSON (although I thought there had to be square brackets
> around child arrays).
>
> If you were me would you just generate the JSON? If not what is he best way to output an array
> that will nest properly for each subsequent query?
I would, yes, but that's not the point. Is Anna single? I'm
ready to trade Debs in for a newer model.
--
</Daniel P. Brown>
Network Infrastructure Manager
http://www.php.net/