100% Free Forever
AI-Powered Learning
Industry Expert Content
Certificates & Badges
Learn At Your Own Pace
Web

JSON

BeginnerLanguage7K learners

JSON (JavaScript Object Notation) is a lightweight, text-based data format that represents structured data as key-value pairs and ordered lists, widely used for exchanging data between servers and web applications.

#JSON#Web#Language#Beginner#XML#YAML#RESTAPI#GraphQL#WebDevelopment#Glossary#SkillVeris

Definition

JSON (JavaScript Object Notation) is a lightweight, text-based data format that represents structured data as key-value pairs and ordered lists, widely used for exchanging data between servers and web applications.

Overview

JSON grew out of JavaScript's object literal syntax but is now a language-independent data format supported natively or via libraries in virtually every programming language. It represents data using just a handful of building blocks — objects (`{}`), arrays (`[]`), strings, numbers, booleans, and null — which makes it easy for both humans to read and machines to parse, and considerably lighter than older formats like XML. JSON became the default payload format for REST APIs largely because JavaScript running in the browser can parse it natively with `JSON.parse()`, avoiding the extra XML-parsing step earlier web services required. It's also the underlying format for many configuration files, NoSQL document stores, and log formats, and it underlies request/response bodies for most modern web and mobile backends built with frameworks like Node.js or Express. JSON has some deliberate limitations — no comments, no support for dates or binary data as native types, and no schema enforcement out of the box — which has led to companion specifications like JSON Schema for validation and formats like YAML that add comments and less-punctuation-heavy syntax for cases like configuration files where human editing matters more than machine efficiency.

Key Features

  • Human-readable, text-based key-value and array structure
  • Native parsing support in JavaScript and virtually every other language
  • Lightweight compared to XML, with less syntactic overhead
  • De facto standard payload format for REST and many GraphQL APIs
  • No native comments, dates, or binary types
  • Extensible via companion specs like JSON Schema for validation

Use Cases

REST API request and response payloads
Application and infrastructure configuration files
NoSQL document database storage format
Data interchange between frontend and backend services
Log file structuring for machine-readable analysis
Serializing application state for storage or transmission

Frequently Asked Questions

From the Blog