Junior JavaScript

What is JSON?

JSON (JavaScript Object Notation) is a lightweight format for storing and transferring

data.

Example:

let obj = { name: "Bob" };

let json = JSON.stringify(obj); // Convert to JSON string

More from JavaScript Tutorial

All questions for this course