Intro To JSON & JSON Schema
As a web developer, it’ll be hard to not come across JSON or JavaScript Object Notation, so understanding it is important as a webdev. It is human readable and easily parsed by a machine and often used as a common format to serialize and deserialize data in applications that communicate with each over on the web. It is an open standard and commonly used in RESTful (Representation State Transfer) web services.
JSON exists as only two data structures: objects and arrays. An object is a set of name-value pairs:
An array of a list of values:
JSON has seven value types:
There is a specification for JSON called JSON schmea. It describes a JSON format, can be used for automated testing and can be used to validate data. There are several validators in different languages to validate a JSON object given a JSON schema. An example looks like this:
Learn more about JSON Schema
Read more about JSON here