تخطي إلى المحتوى الرئيسي
FreeOnlineTools
العربية

منسّق JSON

نسّق وجمّل وتحقق من JSON فوراً في متصفحك. بدون رفع، خصوصية كاملة.

Local processing

What is منسّق JSON?

أداة تنسيق JSON (تسمى أيضاً مجمل أو pretty-printer) تأخذ JSON مضغوط أو مصغر وتعيد إخراجه بمسافات بادئة متسقة، وفواصل أسطر، ومسافات لكي يتمكن البشر من قراءته. JSON (JavaScript Object Notation) هو تنسيق تبادل البيانات الفعلي لواجهات برمجة التطبيقات. أداة التنسيق تكشف أيضاً أخطاء النحو — إذا لم يكن الإدخال JSON صالحاً، يبلغ المحلل عن موقع وطبيعة المشكلة، مما يجعها تعمل أيضاً كأداة تحقق.

How It Works

تحلل الأداة سلسلة الإدخال باستخدام محلل JSON (JSON.parse أو محلل متسامح يقبل الفواصل الزائدة والتعليقات). إذا نجح التحليل، تُعاد تسلسل القيمة الناتجة بمسافة بادئة قابلة للتكوين (عادة مسافتين) وخيار ترتيب المفاتيح. إذا فشل التحليل، يُعرض رسالة خطأ المحلل مع إزاحة الحرف لكي يتمكن المستخدم من تحديد موقع المشكلة. تتم جميع المعالجة محلياً؛ لا تُرسل أي بيانات إلى خادم.

Common Use Cases

  • قراءة استجابات API المصغرة — توسيع حمولة JSON من سطر واحد إلى مخرجات مقروءة ومسافات بادئة
  • تصحيح JSON تالف — تحديد الموقع الدقيق لفاصلة أو قوس مفقود
  • مقارنة ملفات التكوين — المسافات البادئة المتسقة تسهل الفروقات والمراجعات
  • تجهيز JSON للتوثيق — الأمثلة المجملة أوضح في READMEs والمواصفات

Technical Details

المحلل: JSON.parse الأصلي (صارم، متوافق مع RFC 8259). المسافة البادئة: مسافتان افتراضياً، قابلة للتكوين. المخرجات UTF-8. لا تقوم أداة التنسيق بترتيب المفاتيح افتراضياً للحفاظ على ترتيب الإدراج. الفواصل الزائدة والتعليقات ليست JSON صالحاً؛ إذا كانت موجودة، يفشل التحليل بخطأ نحوي. الحد الأقصى العملي لحجم الإدخال مقيد بذاكرة المتصفح (عادة عدة ميغابايت).

How to Use

Enter your input above. The result updates automatically. Use the copy button to copy the result.

Privacy

All processing happens in your browser. Your data is never uploaded to any server.

FAQ

ما هو تنسيق JSON؟

تنسيق JSON يضيف مسافات بادئة وفواصل أسطر لجعل بيانات JSON مقروءة للبشر.

هل يمكن التحقق من JSON؟

نعم، إذا كان JSON غير صالح، ستعرض الأداة خطأ التحليل مع موقعه.

هل يتم رفع بيانات JSON إلى خادم؟

لا. تتم جميع التنسيق والتحقق محلياً في متصفحك. لا تغادر بيانات JSON جهازك أبداً، مما يجعل هذا آمناً للبيانات الحساسة أو المسجلة الملكية.

Related Tools

Related Guides

Related References

Continue Your Journey

📚 Learn Read "JSON Formatting Best Practices: Readable, Valid, and Efficient" Understand the conventions for formatting JSON: indentation, key ordering, minification, trailing commas, and when to pretty-print vs minify. 📚 Learn Read "Regular Expressions Cheat Sheet: Syntax, Flags, and Common Patterns" Complete regex reference: metacharacters, character classes, quantifiers, anchors, groups, flags, and ready-to-use patterns for emails, URLs, and dates. 📚 Learn Read "Understanding JSON: A Beginner's Guide to Formatting and Validation" Learn what JSON is, its syntax rules, common data types, and how to format and validate JSON data using free online tools. 🔧 Explore Try "Base64 Encode & Decode" Encode and decode Base64 with UTF-8 support. Instant, private, browser-based. No upload, no signup. 🔧 Explore Try "URL Encode & Decode" Encode and decode URL (percent-encoding) with UTF-8 support. Instant, private, browser-based. No upload, no signup. 🔧 Explore Try "UUID Generator" Generate random UUIDs (v4) instantly in your browser. No upload, fully private. 📖 Reference View "JSON Syntax Reference" Complete JSON (RFC 8259) syntax reference with data types, grammar rules, examples, and common errors. 📖 Reference View "MIME Types Reference" Common MIME types (Internet media types) with file extensions and descriptions. 📖 Reference View "Regular Expressions Cheat Sheet" Quick reference for regular expression syntax including characters, quantifiers, anchors, groups, and common patterns.