JSON (تدوين كائنات JavaScript)
JSON هو تنسيق خفيف لتبادل البيانات يسهل على البشر قراءته وكتابته ويسهل على الآلات تحليله وتوليده. وهو التنسيق السائد لواجهات برمجة التطبيقات على الويب وملفات التكوين وتخزين البيانات في التطبيقات الحديثة.
نوع MIME
application/json
النوع
نص
الضغط
بدون فقدان
المزايا
- + Human-readable and writable with minimal syntax
- + Native parsing in every programming language
- + Dominant format for REST APIs and web services
- + Lightweight — less verbose than XML
العيوب
- − No comment syntax — cannot annotate configuration files
- − No native date, binary, or schema types
- − Trailing commas cause parse errors in strict parsers
متى تستخدم .JSON
استخدم JSON لاستجابات واجهات برمجة التطبيقات وملفات التكوين وتبادل البيانات بين الخدمات وأي بيانات منظمة تحتاج لأن تكون قابلة للقراءة البشرية.
التفاصيل التقنية
يدعم JSON ستة أنواع من البيانات: السلاسل النصية والأرقام والقيم المنطقية وnull والمصفوفات والكائنات (خرائط مفتاح-قيمة). يستخدم ترميز UTF-8 ولا يدعم التعليقات أو التواريخ أو البيانات الثنائية أصلياً.
التاريخ
نشر Douglas Crockford تنسيق JSON في أوائل الألفية الثالثة مشتقاً إياه من صيغة كائنات JavaScript الحرفية. وُحّد كمعيار ECMA-404 في 2013 وRFC 8259 في 2017 ليصبح تنسيق بيانات واجهات برمجة التطبيقات العالمي.
التحويل من .JSON
التحويل إلى .JSON
صيغ ذات صلة
مصطلحات ذات صلة
Learn More
File Format Conversion: A Complete Guide
Converting files between formats is a daily task for professionals across every industry. This comprehensive guide covers document, image, audio, …
How to Generate Strong Random Passwords
Password generation requires cryptographic randomness and careful character selection. This guide covers the principles behind strong password generation, entropy calculation, …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
CSV vs JSON vs XML: Data Exchange Formats Compared
Data exchange formats serve different needs. CSV excels at tabular data, JSON dominates web APIs, and XML powers enterprise integrations. …