JSON Tutorial

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.


Scroll Back to Top