JSON Schema Last Updated : 22 Jun, 2020 Comments Improve Suggest changes Like Article Like Report JSON Schema is a content specification language used for validating the structure of a JSON data.It helps you specify the objects and what values are valid inside the object's properties. JSON schema is useful in offering clear, human-readable, and machine-readable documentation. Structure of a JSON Schema: Since JSON format contains an object, array, and name-value pair elements. Name-value pairs are used for providing schema processing elements as well as validating the JSON content. Schema processing elements include(not limited to). $schema" To specify the version of JSON schema. title and description: To provide information about the schema. required: It's an array of elements that indicates which elements should be present. additionalProperties: To indicate whether existence of specified elements are allowed or not. JSON content definition: When a JSON object is defined, JSON schema uses name-value pair "type":"object" When arrays are defined, JSON schema uses the name-value pair "type":"array" Example: { "$id": "https://example.com/person.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Voters information", "type": "object", "properties": { "firstName": { "type": "string", "description": "The person's first name." }, "lastName": { "type": "string", "description": "The person's last name." }, "age": { "description": "Age in years which must be equal to or greater than eighteen in order to vote.", "type": "integer", "minimum": 18 } } } Output: { "firstName": "Indra", "lastName": "Sen", "age": 20 } The above JSON schema contains the following: $id keyword $schema keyword title annotation keyword properties validation keyword Three keys: firstName, lastName and age each with their own description keyword. type instance data model (see above) minimum validation keyword on the age key. Comment More infoAdvertise with us Next Article JavaScript JSON A ashitace696 Follow Improve Article Tags : JavaScript Web Technologies JSON Similar Reads JSON Tutorial JSON (JavaScript Object Notation) is a widely-used, lightweight data format for representing structured data. It is used extensively in APIs, configuration files, and data exchange between servers and clients. JSON (JavaScript Object Notation) and XML (eXtensible Markup Language) are popular formats 6 min read JSON Introduction JSON (JavaScript Object Notation) is a lightweight, text-based data format used for representing structured data. It is one of the most widely used formats for data interchange between clients and servers in web applications. JSON has replaced XML as the preferred data format due to its simplicity, 5 min read JSON Full Form JSON stands for JavaScript Object Notation. It is a popular data interchange format used in many applications and technology stacks.JSON is easy for both humans and machines to read.It is not tied to any specific programming language and can be combined with C++, Java, and Python.It represents data 1 min read JSON Data Types JSON (JavaScript Object Notation) is the most widely used data format for data interchange on the web. JSON is a lightweight text-based, data-interchange format and it is completely language-independent.JSON Data Types JSON supports mainly 6 data types: StringNumberBooleanNullObjectArrayNote: string 2 min read JSON Schema JSON Schema is a content specification language used for validating the structure of a JSON data.It helps you specify the objects and what values are valid inside the object's properties. JSON schema is useful in offering clear, human-readable, and machine-readable documentation. Structure of a JSON 2 min read JavaScript JSON JSON (JavaScript Object Notation) is a lightweight data format for storing and exchanging data. It is widely used to send data between a server and a client. JSON is simple, language-independent, and easy to understand.JSON stands for JavaScript Object Notation.It is a lightweight, text-based data i 4 min read JavaScript JSON stringify() Method The JSON.stringify() method in JavaScript is used to convert JavaScript objects into a JSON string. This method takes a JavaScript object as input and returns a JSON-formatted string representing that object. Syntax: JSON.stringify(value, replacer, space);Parameters: value: It is the value that is t 3 min read What is JSON text ? JSON text refers to a lightweight, human-readable format for structuring data using key-value pairs and arrays. It is widely used for data interchange between systems, making it ideal for APIs, configuration files, and real-time communication.In todayâs interconnected digital world, data flows seaml 4 min read Interesting facts about JSON JSON or JavaScript Object Notation is a lightweight format for transporting and storing data. JSON is used when data is transferred from a server to a web page. This language is also characterized as weakly typed, prototype-based, dynamic, and multi-paradigm. Here are some interesting facts about JS 2 min read Like