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
Bevezetés
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.
Követelmények
As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default.
További információk, mint például új kiadások, letöltés, forrásállományok, karbantartók, CHANGELOG találhatóak itt: » 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 05:33
22-Mar-2007 05:33
Max Headroom
11-Nov-2006 06:49
11-Nov-2006 06: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 06:35
04-Sep-2006 06: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...
