Skip to content

JSON Tutorial ​

JSON

JSON: JavaScript Object Notation.

JSON is a text format for storing and exchanging data. It is similar to XML, but usually smaller, faster, and easier to parse. Humans can read and write it easily, and languages such as C, Python, Java, PHP, and Go support it widely.

json
{
  "sites": [
    { "name": "Runoob", "url": "www.runoob.com" },
    { "name": "google", "url": "www.google.com" },
    { "name": "Weibo", "url": "www.weibo.com" }
  ]
}

The sites value is an array of three site objects.

Learning path ​

What is JSON? ​

  • A lightweight text data-exchange format
  • Language- and platform-independent (syntax inspired by JavaScript)
  • Self-describing and easy to understand

Next: JSON Intro