JSON Data Types Last Updated : 02 Dec, 2024 Comments Improve Suggest changes Like Article Like Report 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, number, boolean, null are simple data types or primitives data types whereas object and array are referred as complex data types. JSON StringJSON strings must be written in double quotes like C-language there are various special characters(Escape Characters) in JSON that you can use in strings such as \ (backslash), / (forward slash), b (backspace), n (new line), r (carriage return), t (horizontal tab), etc. { "name":"Vivek" }{ "city":"Delhi\/India" }here \/ is used for Escape Character / (forward slash).JSON NumberRepresented in base 10 and octal and hexadecimal formats are not used. { "age": 20 }{ "percentage": 82.44}JSON BooleanThis data type can be either true or false. { "result" : true }JSON NullIt is just a define nullable value. { "result" : true, "grade" : null, "rollno" : 210}JSON ObjectIt is a set of name or value pairs inserted between {} (curly braces). The keys must be strings and should be unique and multiple key and value pairs are separated by a, (comma).{"Geek":{ "name":"Peter", "age":20, "score": 50.05}}JSON ArrayIt is an ordered collection of values and begins with [ (left bracket) and ends with ] (right bracket). The values of array are separated by , (comma).{"geek":[ "Sahil", "Vivek", "Rahul" ]}{ "collection" : [ {"id" : 101}, {"id" : 102}, {"id" : 103} ]} Comment More infoAdvertise with us Next Article JSON Schema V vivekkothari 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