0% found this document useful (0 votes)
10 views5 pages

What Is JSON

JSON is a lightweight data interchange format that is easy for humans to read and write and for machines to parse and generate. It provides a standardized way to represent structured data using key-value pairs. The main advantages of JSON are its simplicity, readability by both humans and machines, and support across programming languages. JSON data types include strings, numbers, booleans, arrays, objects, and null values, allowing it to represent complex data structures in a standardized way.

Uploaded by

riyaa.jha29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views5 pages

What Is JSON

JSON is a lightweight data interchange format that is easy for humans to read and write and for machines to parse and generate. It provides a standardized way to represent structured data using key-value pairs. The main advantages of JSON are its simplicity, readability by both humans and machines, and support across programming languages. JSON data types include strings, numbers, booleans, arrays, objects, and null values, allowing it to represent complex data structures in a standardized way.

Uploaded by

riyaa.jha29
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

What is JSON?

1 Definition of JSON 2 Key Characteristics of JSON

JSON, or JavaScript Object Notation, is a JSON is text-based, language-independent, and


lightweight data interchange format that is easy supports a hierarchical structure. It is widely
for humans to read and write and for machines used for storing and exchanging data between
to parse and generate. It provides a simple and systems.
standardized way to represent structured data,
One of the main advantages of JSON is its
making it ideal for transmitting and storing
simplicity. It is easy to understand and work
information.
with, both for humans and machines. JSON
JSON is based on a subset of JavaScript, but it data can be easily parsed and generated by
can be used with any programming language. It programming languages, making it a popular
uses key-value pairs to organize data, where choice for data interchange.
the keys are strings and the values can be
strings, numbers, booleans, arrays, or even
other JSON objects.
JSON Data Types
String Number

A string is a sequence of characters enclosed in A number can be an integer or a floating-point


double quotes. It represents textual data and can value. JSON does not differentiate between
contain letters, numbers, and special characters. different types of numbers.

Boolean Object

A boolean value can be either true or false. It An object is an unordered collection of key-value
represents two states of logic: true for on or pairs. Each key is a string, and each value can be
enabled, and false for off or disabled. any JSON data type, including nested objects or
arrays.
JSON Data Types (contd.)
Array Null

An array is an ordered list of values. It can The null value represents the absence of a value.
contain multiple JSON data types, including It is commonly used to indicate that a particular
strings, numbers, booleans, objects, arrays, or field or property has no valid data.
null.
Understanding JSON Data Types

String Number Object

Strings in JSON are enclosed in Numbers in JSON can be integers Objects in JSON are enclosed in
double quotes. They can represent or floating-point values. They curly braces. They can hold
names, addresses, or any textual could represent quantities, prices, multiple key-value pairs, allowing
information within a JSON or any other numerical data. for the representation of complex
document. data structures.
Thank You!

You might also like