PDFのミカタ

JSONでよくある間違い

公開日:2026年10月19日|最終更新:2026年10月19日|運営者情報

この記事のポイント
  • 知る
  • 直す

JSONは、書き方が厳密で、ちょっとした間違いで読めなくなります。JSONを整える・チェックする で「JSONの形が正しくありません」と出たときに、確認したい、よくある間違いをまとめます。

手順

  1. 「整える前」に、JSONを貼り付けます。
  2. 「整える」を押します。
  3. 誤りがあれば、「JSONの形が正しくありません」と表示されます。
  4. 下のよくある間違いを、順に確認して直します。
このツールは、誤りの場所を表示しません。短くして試すと、場所を絞り込めます。

よくある間違い

正しい形の例

波かっこの中に、項目名と値を、コロンでつなぎ、項目のあいだをカンマで区切る。項目名と文字列は、ダブルクォーテーションで囲む。

直すコツ

全角の記号の見つけ方

見た目は似ていても、全角のかっこや引用符は、半角と幅が違います。テキストエディタで、全角の記号を検索して、探します。

向いている対処

手書きや、メモ帳で編集したJSONに多い誤りです。編集後は、必ずこのツールで、チェックしましょう。

例

設定ファイルを編集したら、読み込めなくなった。調べると、項目名の引用符が、全角になっていた。半角に直して、解決した。

つまずきやすい点

よくある質問

JavaScriptのオブジェクトは、そのまま貼れますか?

項目名に引用符がなければ、誤りになります。JSONの書き方に直します。

まとめ

余分なカンマ、引用符、かっこ、全角に注意。直したら、もう一度チェックしましょう。

JSONを整える・チェックするを使う(無料)

あわせて使えるツール

この解説が役に立ったら、応援してもらえるとうれしいです。

応援する(300円)ほしい物リストで応援

同じツールの、ほかの解説

解説の一覧を見る

Common JSON Mistakes

Published: Oct 19, 2026 | Updated: Oct 19, 2026 | About (Japanese)

Key points
  • Learn
  • Fix

JSON syntax is strict, and a small mistake makes it unreadable. Here are the common mistakes to check when Format and Validate JSON shows "The JSON is malformed".

Steps

  1. Paste the JSON into "Before".
  2. Press "Format".
  3. If there is an error, "The JSON is malformed" is shown.
  4. Check the common mistakes below in order and fix them.
This tool doesn't show the error location. Shortening and trying narrows down the place.

Common mistakes

Example of the correct form

Inside braces, join item names and values with colons and separate items with commas. Enclose item names and strings in double quotes.

Tips for fixing

Finding full-width symbols

Though they look similar, full-width brackets and quotes differ in width from half-width. Search for full-width symbols in a text editor.

A useful approach

These are common mistakes in JSON edited by hand or in Notepad. After editing, always check with this tool.

Example

After editing a configuration file it couldn't be loaded. Investigation showed the quotes on the item names were full-width. Changed to half-width and solved it.

Common stumbling blocks

Frequently asked questions

Can a JavaScript object be pasted as it is?

If item names lack quotes, it's an error. Rewrite it in JSON syntax.

Summary

Watch for extra commas, quotes, brackets and full-width characters. After fixing, check again.

Use "Format and Validate JSON" (free)

Tools that go well with this

If this guide helped, a small tip would mean a lot.

Send a tip (¥300)Send a gift (Amazon wishlist)

More guides for this tool

See all guides