JSON (JavaScript Object Notation)

JSON is the standard syntax used when dealing with data in JavaScript and in many other languages and web services.

Below is a standard JSON object:

	“title”: “My blog”,
	“number-posts”: 245,
	“topics”: [
		{ “topic”: “Node” },
		{ “topic”: “MongoDB” },
		{ “topic”: “CSS” }

JSON looks like a JavaScript object with a few differences.

JSON is pure text, it isn’t data types with properties. Date values are stored as strings.
In JSON all names and string values must be in double quotes.
There are no functions as properties in JSON.

As you can see, JSON is very similar to XML but much easier to read.

Leave a Reply