JSON Flashcards
What is JSON?
JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.
/ standardized way of transferring data.
What are serialization and deserialization?
serialization is transforming the object into bytes of data for easier transmission.
deserialization is transforming the bytes back into an object we can use
Why are serialization and deserialization useful?
it makes transferring large amounts of information is easier as serialized it is very lightweight and with deserialization it can be transformed into something that can easily be used
How do you serialize a data structure into a JSON string using JavaScript?
with JSON.stringify
How do you deserialize a JSON string into a data structure using JavaScript?
with JSON.parse