note 95476 deleted from function.json-encode by thiago
| From: | thiago@php.net | Date: | Tue, 05 Jan 2010 12:28:09 +0000 |
| Subject: | note 95476 deleted from function.json-encode by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164657@lists.php.net to get a copy of this message | ||
Note Submitter: rene
----
[mods:] The functions that i listed earlier on this page do not handle HTML within JSON very well.
please remove those 2 comments, this is the final update to my contribution for this page:[/mods]
I've built a few helper functions to lift large & deep PHP arrays to javascript via JSON,
and to show such data-structures initially collapsed, with some functions to click-and-see the
sub-values.
HTML within JSON strings and JSON within JSON are supported.
Dumping an array from PHP is as simple as
htmlDump ($arr, $title);
For a demo & download (LGPL) see http://skatescene.biz/jsonDebug-1.0.0/