PDF Mikata

Cara Menemukan Kesalahan pada JSON

Diterbitkan: 19 Okt 2026 | Diperbarui: 19 Okt 2026 | Tentang (bahasa Jepang)

Poin penting
  • Tempel
  • Periksa
  • Perbaiki

You wrote JSON, and the program couldn't read it and gave an error. You can't tell what's wrong. Format and Validate JSON checks whether the pasted JSON is correct.

Langkah-langkah

  1. Paste the JSON into "Before".
  2. Press "Format".
  3. If correct, "Valid JSON" is shown and the tidy result appears under "After".
  4. If there is an error, "The JSON is malformed" is shown.
This tool doesn't show the location of the error. When there is one, check the common mistakes in turn.

Flow of checking

  1. Check whether the pasted JSON is correct.
  2. If there is an error, fix it.
  3. Check again with "Format".
  4. If "Valid JSON" appears, the syntax is right.

Tips for finding errors

Examples judged correct

Item names enclosed in double quotes, and values that are a string, number, boolean, null, array or object.

Even correct JSON needs care

Even if "Valid JSON" appears, it doesn't necessarily match the items and form the program expects. Check the spelling of item names and value types separately.

Cocok untuk

Contoh

After hand-editing a configuration file, the app wouldn't start. Pasting it in showed "The JSON is malformed". Deleting an extra comma after the last item fixed it.

Common stumbling blocks

Frequently asked questions

Can JSON5 or JSON with comments be checked?

It is judged by the rules of ordinary JSON. Comments can't be written.

Ringkasan

Just paste and press "Format" to check the syntax. Look for errors starting with the common mistakes.

Gunakan “Format dan Validasi JSON” (gratis)

Alat yang cocok dipakai bersama

Jika panduan ini membantu, tip kecil akan sangat berarti bagi kami.

Kirim tip (¥300)Kirim hadiah (daftar keinginan Amazon)

Panduan lain untuk alat ini

Lihat semua panduan