JSON 線上驗證器 - 檢查語法錯誤

即時驗證 JSON 語法並定位錯誤。所有資料只在瀏覽器本機處理。

輸入 JSON

格式化結果

檢視模式:
格式化後的程式碼將在這裡顯示...

使用說明

  • 點擊「美化」來格式化和美化 JSON 資料
  • 點擊「壓縮」來壓縮 JSON 資料
  • 點擊「驗證」檢查JSON語法
  • 點擊「載入」載入範例資料
  • 切換到「樹狀檢視」以互動方式瀏覽JSON結構
  • 使用「歷史」按鈕在本地儲存、檢視和管理您過去的JSON條目。
  • 所有處理都在您的瀏覽器本地完成

How to validate JSON syntax

The validator uses the browser JSON parser and reports line and column details when available. Fix the first error and validate again; this is usually the fastest way to recover a valid document.

  1. Paste the JSON document.
  2. Select Validate and inspect the first error.
  3. Fix it and repeat until the document is valid.

Why does valid-looking JSON fail?

Common causes include trailing commas, single quotes, unescaped line breaks, and missing double quotes.

Does validation modify the input?

No. Validation only reads the input and reports the result.