For those of you who wants to use JSON with PHP4 to process russian KOI8-r text, please read the following article: http://yozhek10nozhek.livejournal.com/5842.html (in russian)
Maybe it is neither completed yet nor professionally-written, but it doesn't aim to be some kind of full-featured manual.
Note, that you must have iconv extension loaded to use it; json extension is not needed, I use Services_JSON (http://pear.php.net/pepr/pepr-proposal-show.php?id=198) implementation.
JSON Functions
Εισαγωγή
This extension implements the » JavaScript Object Notation (JSON) data-interchange format. The decoding is handled by a parser based on the JSON_checker by Douglas Crockford.
Απαιτήσεις
As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/json
Table of Contents
- json_decode — Decodes a JSON string
- json_encode — Returns the JSON representation of a value
JSON
a DOT rabbit AT donec DOT net
22-Mar-2007 02:33
22-Mar-2007 02:33
Max Headroom
11-Nov-2006 03:49
11-Nov-2006 03:49
The JSON function is basically a more widely accepted variation on the WDDX principle:
http://us2.php.net/manual/en/ref.wddx.php
giunta dot gaetano at sea-aeroportimilano dot it
04-Sep-2006 03:35
04-Sep-2006 03:35
Two pure-php implementations of the json protocol that might be of use, e.g. for php 4 installs where adding extensions is not an option or because of extra functionality can be found here:
http://sourceforge.net/projects/phpxmlrpc (look for the extras package)
http://mike.teczno.com/json.html
Of course, performance is abysmal compared to the php extension, written in highly optimized C code...
