PDF Mikata

أخطاء JSON الشائعة

تاريخ النشر: 19 أكتوبر 2026 | آخر تحديث: 19 أكتوبر 2026 | حول (باليابانية)

النقاط الرئيسية
  • تعلّم
  • أصلح

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".

الخطوات

  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.

أخطاء شائعة

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.

مثال

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.

الخلاصة

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

استخدم «تنسيق JSON والتحقق منه» (مجانًا)

أدوات تتكامل مع هذه الأداة

إذا أفادك هذا الدليل، فإن إكرامية صغيرة تعني لنا الكثير.

أرسل إكرامية (¥300)أرسل هدية (قائمة أمنيات Amazon)

المزيد من الأدلة لهذه الأداة

عرض جميع الأدلة