PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

json_decode> <java_last_exception_get
Last updated: Fri, 26 Jan 2007

view this page in

LXX. 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.

Дополнительная информация, такая как новый версии, скачивание, исходные файлы, информация о разработчике и CHANGELOG, могут быть найдены здесь: http://pecl.php.net/package/json

Содержание
json_decode -- Decodes a JSON string
json_encode -- Returns the JSON representation of a value


json_decode> <java_last_exception_get
Last updated: Fri, 26 Jan 2007
 
add a note add a note User Contributed Notes
JSON Functions
a DOT rabbit AT donec DOT net
22-Mar-2007 02:33
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.
Max Headroom
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
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...

json_decode> <java_last_exception_get
Last updated: Fri, 26 Jan 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites