Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 2
JSONの記法

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 28

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 28
 
トップページ >  Ajax >  JSONの記法
初版2009/10/14: 最終更新日2009/10/14
JSONの記法
目次
JSONの記法
JSONの記法
JSONはオブジェクトと配列の組み合わせで構造化されたデータを表現します。
オブジェクトは{}で全体を囲み、キーと値のペアをコロン(:)で区切って記述します。カンマ(,)で複数のキーと値を記述することも可能です。キーには文字列のみ使用可能です。
オブジェクトの記述例は、以下の通りです。

{
	"key_1":"A", "key_2":9
}

配列は繰り返し項目を表現する際に使用します。全体を[]で囲み、値をカンマ(,)で区切って列挙します。
配列の記述例は、以下の通りです。

[
	"val_1", "val_2", "val_3"
]

JSON形式の妥当性をチェックするサイトです。


Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 99

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/ajax/json/json_notation/json_notation.html on line 99