filmov
tv
PART 29 - JavaScript - JSON, parse and stringify
Показать описание
JSON - JavaScript Object Notation
It is a syntax for storing and exchanging data. It is a text-based, human-readable data interchange format, written with JavaScript object notation.When exchanging data between a browser and a server, the data can only be text. JSON is text, and we can convert any JavaScript object into JSON, and send JSON to the server. We can also convert any JSON received from the server into JavaScript objects. This way we can work with the data as JavaScript objects, with no complicated parsing and translations.
Sending Data to Server: - JSON.stringify()
Receiving Data from Server: - JSON.parse()
It is a syntax for storing and exchanging data. It is a text-based, human-readable data interchange format, written with JavaScript object notation.When exchanging data between a browser and a server, the data can only be text. JSON is text, and we can convert any JavaScript object into JSON, and send JSON to the server. We can also convert any JSON received from the server into JavaScript objects. This way we can work with the data as JavaScript objects, with no complicated parsing and translations.
Sending Data to Server: - JSON.stringify()
Receiving Data from Server: - JSON.parse()