JSON (JavaScript Object Notation)
JSON adalah format pertukaran data ringan yang mudah dibaca dan ditulis manusia serta mudah di-parse dan dihasilkan oleh mesin. Format ini merupakan format dominan untuk API web, file konfigurasi, dan penyimpanan data dalam aplikasi modern.
Tipe MIME
application/json
Tipe
Teks
Kompresi
Lossless
Kelebihan
- + 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
Kekurangan
- − No comment syntax — cannot annotate configuration files
- − No native date, binary, or schema types
- − Trailing commas cause parse errors in strict parsers
Kapan Menggunakan .JSON
Gunakan JSON untuk respons API, file konfigurasi, pertukaran data antar layanan, dan data terstruktur apa pun yang perlu dapat dibaca manusia.
Detail Teknis
JSON mendukung enam tipe data: string, angka, boolean, null, array, dan objek (peta kunci-nilai). Menggunakan encoding UTF-8 dan tidak memiliki dukungan native untuk komentar, tanggal, atau data biner.
Riwayat
Douglas Crockford mempopulerkan JSON pada awal tahun 2000-an, mengambilnya dari sintaks literal objek JavaScript. Distandardisasi sebagai ECMA-404 pada tahun 2013 dan RFC 8259 pada tahun 2017, menjadi format data API universal.
Konversi dari .JSON
Konversi ke .JSON
Format Terkait
Istilah Terkait
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. …