Re: Converting an unordered list into JSON

From: Date: Mon, 05 Mar 2012 16:24:41 +0000
Subject: Re: Converting an unordered list into JSON
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-316888@lists.php.net to get a copy of this message
[snip] $json = json_encode($nested_unordered_list); As I said, whether that works or not depends on what type $nested_unordered_list is. If it's not made of standard types you'll need to massage it into a structure using standard types. :D [/snip] Stewie, Stewie, Stewie..... :) So what you're saying is that I will need to turn the nested unordered list into an array? Because an array would more accurately represent the data.

« previous php.general (#316888) next »