Online visitors

People learning around the world

Online

—

Visitors exploring W3Schools

Online visitors by country Circles show approximate country locations. The country list provides the visitor counts.

Circles represent countries, not exact visitor locations.

Country

Online

Loading country activity…

    JSON Tutorial

    JSON Tutorials


    JSON stands for JavaScript Object Notation, and it's designed to store and transport data. JSON is designed to store and organize data similar to XML, but JSON is smaller, faster, and easier to parse than XML. This tutorial series will help you to get started in JSON.

    Required Knowledge

    Before starting this tutorial, you must have a basic understanding and experience of the following:

    • This tutorial is mainly focused on using JSON with PHP.
    • For your reference, we recommend you read our PHP Array tutorial.

    JSON Example

    A quick look at JSON's example and a detailed description are given on the JSON Syntax page.

    Example:

    {
      "students": [
        {
          "firstName": "David",
          "lastName": "Crosby"
        },
        {
          "firstName": "Alex",
          "lastName": "Rodriguez"
        },
        {
          "firstName": "Anna",
          "lastName": "Weston"
        }
      ]
    }

    In the above example, students' information is stored in JSON.



    Found This Page Useful? Share It!
    Get the Latest Tutorials and Updates
    Join us on Telegram

    Notifications

    Updates are enabled for this browser.

    Receive new tutorials, articles and learning resources. You can turn updates off anytime.