Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

AJAX Examples

HTML

JSON

JSON stands for JavaScript Object Notation.

JSON is a text-based format used for storing and transmitting data.

JSON is “self-descriptive” and easy to read.

JSON Example

This example is a JSON formatted string.

‘{“name”:”John”, “age”:30, “car”:null}’

It defines an object with three properties:

  • name
  • age
  • car

Each property has an associated value.

By parsing the JSON string with a JavaScript program, you can access the data as an object.

let personName = obj.name;
let personAge = obj.age;