メインコンテンツへスキップ
Z

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, text-based data format for storing and exchanging structured data as key/value pairs and ordered lists. It is language-independent, easy for humans to read and machines to parse, and is the default format for web APIs and configuration.

A JSON document is built from two structures: objects (unordered key/value pairs in { }) and arrays (ordered lists in [ ]). Values can be strings, numbers, booleans, null, objects or arrays. Keys and strings use double quotes; there are no comments and no trailing commas.

JSON became the lingua franca of web APIs because it maps directly onto data structures in almost every language and parses natively in browsers. It is also widely used for configuration, logging and data storage.

JSON tools

よくある質問

JSON5とは何ですか?

JSON5はJSONを拡張した仕様で、コメント、末尾カンマ、シングルクォート文字列、クォート不要のキー、16進数/Infinity/NaNなど、さまざまな追加機能を備えています。

JSON5とJSONCは同じものですか?

いいえ、異なります。JSONC(VS Codeが採用する「コメント付きJSON」)はコメントの追加のみですが、JSON5はそれに加えて末尾カンマ、クォート不要のキー、シングルクォートなども追加でサポートしています。

関連するツールはありますか?

厳密な標準JSONには<a class="text-brand-600 hover:underline" href="/json-formatter">JSON Formatter</a>を、YAMLを本格的に扱いたい場合は<a class="text-brand-600 hover:underline" href="/yaml-formatter">YAML Formatter</a>をご利用ください。