JSONでよくある間違い
この記事のポイント
- 知る
- 直す
手順
- キーや文字列を、ダブルクォートで囲みます。
- 最後の項目のあとに、カンマをつけません。
- コメントは書けません。JSONを整える・チェックする で確かめられます。
あわせて使えるツール
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- ファイルとBase64を相互変換する:ファイルとBase64の文字を相互に変換します。
- 重複した行を消す・並べ替える:重複した行を消して、並べ替えます。
同じツールの、ほかの解説
Common JSON Mistakes
Key points
- Learn
- Fix
Steps
- Wrap keys and strings in double quotes.
- Do not put a comma after the last item.
- Comments are not allowed. Check with Format and Validate JSON.
Tools that go well with this
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Convert Files and Base64: Convert between files and Base64 text.
- Remove Duplicate Lines and Sort a List: Remove duplicate lines and sort them.