6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

JSONとは何奴,,に関して

6
Last updated at Posted at 2015-10-18

JSONとは何奴,,に関して

要約 => JSONとはオブジェクトや、配列を組み合わせて構造化されたデータを表現する"データ記述言語"である。
簡単に言えば、人間が理解しやすいデータの記述が可能な言語である。
JSONとは、JavaScript ObjectNotationの略称で、「データを表現するためテキストフォーマットの一種」です。

「JSON データは、name/value のペアで記述します。」

Name/名前に関して

・"foobar": "hoge" => name: 値という関係性のデータ形式になると見やすいよねという事

Value/値に関して

・文字列値/string "abc"のようにダブルクオートで囲んだ値


JSONFormatで記述していない場合のデータ


 "resultCount":1,
 "results": [
{"wrapperType":"track", "kind":"song", "artistId":271593168, "collectionId":81901964, "trackId":81901909, "artistName":"RYUICHI SAKAMOTO", "collectionName":"/ 04", "trackName":"Merry Christmas Mr. Lawrence", "collectionCensoredName":"/ 04", "trackCensoredName":"Merry Christmas Mr. Lawrence", "collectionArtistName":"坂本龍一", 

JSON Formatで記述し、再形成した場合のデータ

{
    "resultCount": 1,
    "results": [
        {
            "wrapperType": "track",
            "kind": "song",
            "artistId": 271593168,
            "collectionId": 81901964,
            "trackId": 81901909,
            "artistName": "RYUICHI SAKAMOTO",
            "collectionName": "/ 04",
            "trackName": "Merry Christmas Mr. Lawrence",
            "collectionCensoredName": "/ 04",
            "trackCensoredName": "Merry Christmas Mr. Lawrence",
            "collectionArtistName": "坂本龍一"
        }
    ]
}
追記 Formatに関して

Formatにはおもに3つの意味があります。

1 初期化 OSにファイルを読み書き作業ができる基本状態(初期状態)にする事

2 書式設定 文書の元となる体裁を設定する事

3 ファイル形式 ファイルの元となる種類の事

フォーマットはラテン語の「形作る」という意味の言葉です。

参考URL

http://imimatome.com/katakanagonoimi/katakana67.html
http://ai-future.hatenablog.jp/entry/GEEKJOB%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%97%E7%84%A1%E6%96%99%E4%BD%93%E9%A8%93%E8%AA%AC%E6%98%8E%E4%BC%9A%E8%A9%95%E5%88%A4%E6%84%9F%E6%83%B3
6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?