Difference between revisions of "W2271 JSON FILES"

From Coder Merlin
(Created page with "==What is JSON?== '''JSON''' or '''Javascript Object Notation''' is a text-based language-independent data-interchange format very similar to '''XML''' or '''YAML'''. Although...")
 
Line 1: Line 1:
==What is JSON?==
==What is JSON?==
'''JSON''' or '''Javascript Object Notation''' is a text-based language-independent data-interchange format very similar to '''XML''' or '''YAML'''. Although JSON can be used with almost every major coding language,  JSON wouldn’t be correctly classified as a “programming language” per se, rather it’s a text-based open standard method of storing, sending, and retrieving data between a client and server. JSON is a very important data representation format, as it is widely used to facilitate the majority of web-based API calls and is very common in facilitating communication between servers and clients in a wide array of applications.
'''JSON''' or '''Javascript Object Notation''' is a text-based language-independent data-interchange format very similar to '''XML''' or '''YAML'''. Although JSON can be used with almost every major coding language,  JSON wouldn’t be correctly classified as a “programming language” per se, rather it’s a text-based open standard method of storing, sending, and retrieving data between a client and server. JSON is a very important data representation format, as it is widely used to facilitate the majority of web-based API calls and is very common in facilitating communication between servers and clients in a wide array of applications.
==What is the motivation for learning JSON?==
Learning '''JSON'''gives developers an easy introduction to working with a multitude of web-based applications and services, since JSON is a  Today, a huge portion of front-end and back-end web-based applications and services are coded via '''JavaScript'''. JSON is a superset of JavaScript, meaning anything you write in JSON is JaveScript format is syntactically similar to the code for creating JavaScript objects. Because of this, a JavaScript program can easily convert JSON data into JavaScript objects.
Since the format is text only, JSON data can easily be sent between computers, and used by any programming language.
JavaScript has a built in function for converting JSON strings into JavaScript objects:
JSON.parse()
JavaScript also has a built in function for converting an object into a JSON string:
JSON.stringify()

Revision as of 17:29, 17 November 2021

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

What is JSON?[edit]

JSON or Javascript Object Notation is a text-based language-independent data-interchange format very similar to XML or YAML. Although JSON can be used with almost every major coding language, JSON wouldn’t be correctly classified as a “programming language” per se, rather it’s a text-based open standard method of storing, sending, and retrieving data between a client and server. JSON is a very important data representation format, as it is widely used to facilitate the majority of web-based API calls and is very common in facilitating communication between servers and clients in a wide array of applications.

What is the motivation for learning JSON?[edit]

Learning JSONgives developers an easy introduction to working with a multitude of web-based applications and services, since JSON is a Today, a huge portion of front-end and back-end web-based applications and services are coded via JavaScript. JSON is a superset of JavaScript, meaning anything you write in JSON is JaveScript format is syntactically similar to the code for creating JavaScript objects. Because of this, a JavaScript program can easily convert JSON data into JavaScript objects.

Since the format is text only, JSON data can easily be sent between computers, and used by any programming language.

JavaScript has a built in function for converting JSON strings into JavaScript objects:

JSON.parse()

JavaScript also has a built in function for converting an object into a JSON string:

JSON.stringify()