December 21, 2022
Estimated Post Reading Time ~

If you want to know how to use/manipulate JSON in Javascript open this

If you want to know how to use/manipulate JSON in Javascript open this:



JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write and easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language.

JSON is a text format that is completely language-independent but uses conventions that are familiar to programmers of the C-family of languages, including C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

Here is an example of a JSON object:



In JavaScript, you can use the JSON.parse() method to parse a JSON string and convert it into a JavaScript object. 

Here is an example:



You can also use the JSON.stringify() method to convert a JavaScript object into a JSON string. 

Here is an example:



Where is JSON used? 
JSON is commonly used to transmit data between a server and a web application or between two web applications. 

It is also often used as a simple data storage format, either as a flat file or in a NoSQL database such as MongoDB or CouchDB.

Source:
@csaba_kissi


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.