Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: JSON 関数 - Manual
[go: Go Back, main page]

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

search for in the

json_decode" width="11" height="7"/> <java_last_exception_get
Last updated: Thu, 31 May 2007

view this page in

LXXIII. JSON 関数

導入

この拡張モジュールは、» JavaScript Object Notation (JSON) というデータ交換形式を実装したものです。デコード処理は、 Douglas Crockford による JSON_checker を基にしています。

要件

PHP 5.2.0 以降、JSON 拡張モジュールはデフォルトで PHP に組み込まれます。

この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場所にあります。 » http://pecl.php.net/package/json

目次

json_decode — JSON 文字列をデコードする
json_encode — 値を JSON 形式にして返す


add a note add a note User Contributed Notes
JSON 関数
a DOT rabbit AT donec DOT net
22-Mar-2007 06: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
12-Nov-2006 08: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 07: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...

 
show source | credits | sitemap | contact | advertising | mirror sites