كيف تستخدم مدقّق JSON
- الصق JSON أو ارفع ملفاً.
- النتيجة تظهر فوراً: صالح أو غير صالح مع التفاصيل.
عن مدقّق JSON
قبل إرسال بيانات إلى API أو حفظ إعدادات، تأكد أن JSON صالح. المدقّق يطبّق قواعد JSON القياسية ويعرض أول خطأ بالسطر والعمود.
لا يتحقق من المخطط (schema) — فقط من أن النص JSON صحيح التركيب.
Mistakes people make most often
Almost every invalid document comes down to a short list: a comma after the last element, single quotes, comments, keys without quotes, a missing comma between two items, or an unescaped line break inside a string. All of them are flagged with a specific message here.
If your data comes from a JavaScript object literal or a config file that allows comments, try the JSON5 validator instead. JSON5 is a relaxed cousin of JSON that accepts those things.