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 the example of JSON and a detailed description is given in 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