Re: Converting an unordered list into JSON
| From: | Jim Giner | Date: | Mon, 05 Mar 2012 16:42:44 +0000 |
| Subject: | Re: Converting an unordered list into JSON | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316890@lists.php.net to get a copy of this message | ||
"Jay Blanchard" <jay.blanchard@sigmaphinothing.org> wrote in message
news:4F54E388.7010406@sigmaphinothing.org...
> On 3/5/2012 9:53 AM, Stuart Dallas wrote:
>> On 5 Mar 2012, at 15:50, Jay Blanchard wrote:
>>
>>> I am off on my next tangent now and I have not really thought about this
>>> too much yet but have you seen a method to convert a nested unordered
>>> list into JSON using PHP?
>> There's a very useful search function for the PHP manual on the PHP site.
>> Typing json into that would have got you to
>> http://php.net/json_encode.
>> If that can't natively handle your variable type then you'll need to
>> massage the data into simple types first.
>>
> Stuart I have RTFM, I was hoping that someone had an example handy. :)
Jay,
Sounds like your tangents are efforts to accomplish things that you know too
little about and don't want to spend too much time getting acquainted with.
To borrow from your crude response to Mr. Dallas: You may have RTFM, now
try DTFW. :)