About 72,000 results
Open links in new tab
  1. JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy to read and write for humans and easy to parse and generate for machines. It is often used to transmit data between a server and a web application.

    JSON Structure

    JSON is text-based and follows JavaScript object syntax. It can represent various data types such as objects, arrays, strings, numbers, booleans, and null. Here is an example of a JSON object:

    {
    "employees": [
    {"firstName": "John", "lastName": "Doe"},
    {"firstName": "Anna", "lastName": "Smith"},
    {"firstName": "Peter", "lastName": "Jones"}
    ]
    }
    Copied!

    In this example, the employees object is an array containing three objects, each representing an employee with firstName and lastName properties.

    JSON Syntax Rules

    • Data is in name/value pairs: "firstName": "John"

    • Data is separated by commas: {"firstName": "John", "lastName": "Doe"}

    • Curly braces hold objects: {"firstName": "John", "lastName": "Doe"}

    • Square brackets hold arrays: ["John", "Anna", "Peter"]

    Feedback
  2. JavaScript JSON - W3Schools

    The JSON format is syntactically identical to the code for creating JavaScript objects. Because of this similarity, a JavaScript program can easily convert JSON data into nati…
    What Is Json?

    1. JSON stands for JavaScript Object Notation
    2. JSON is a lightweight data interchange format
    3. JSON is language independent *
    4. JSON is "self-describing" and easy to un…

    Json Syntax Rules

    1. Data is in name/value pairs
    2. Data is separated by commas
    3. Curly braces hold objects
    4. Square brackets hold arrays

    Json Data - A Name and A Value

    JSON data is written as name/value pairs, just like JavaScript object properties. A name/value pair consists of a field name (in double quotes), followed by a colon, followed by a value:

    Json Objects

    JSON objects are written inside curly braces. Just like in JavaScript, objects can contain multiple name/value pairs:

  3. JSON - JavaScript | MDN - MDN Web Docs

    Learn how to use JSON, a syntax for serializing and converting JavaScript objects and arrays to and from strings. See the differences between JSON and JavaScript, the JSON namespace object, and the …

  4. JSON Tutorial - GeeksforGeeks

    Mar 26, 2026 · In a typical web application, JSON (JavaScript Object Notation) is used to transfer data between the server and the client (frontend). JSON is …

  5. JSON

    JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. …

  6. JSON methods, toJSON - The Modern JavaScript Tutorial

    Jan 24, 2024 · Learn how to convert JavaScript objects into JSON strings and vice versa using JSON.stringify and JSON.parse methods. See examples, syntax, …

  7. People also ask
    Loading
    Unable to load answer
  8. How to Dynamically Build JSON in JavaScript: Step-by-Step Guide to ...

    Jan 16, 2026 · In this guide, we’ll break down how to dynamically create JSON in JavaScript, from basic objects and arrays to nested structures, conditional properties, and validation.

  9. Working with JSON in JavaScript: Complete Guide for Developers

    Nov 1, 2025 · What is JSON in JavaScript? JSON (JavaScript Object Notation) is a text-based data format that was inspired by JavaScript object syntax but is not the same as JavaScript objects.

  10. JavaScript and JSON (with Examples) - Programiz

    Learn what JSON is, how it differs from JavaScript objects, and how to access, convert, and use JSON data in JavaScript. See examples of JSON syntax, objects, arrays, and functions.

  11. JavaScript JSON Reference - W3Schools

    Learn how to use JSON (JavaScript Object Notation) to store and transport data with JavaScript. See examples of converting, sending, receiving and storing JSON with methods and data types.

  12. Mastering JSON in JavaScript - Comprehensive Examples and …

    Learn how to work with JSON in JavaScript with practical examples for parsing, stringifying, and manipulating JSON data.