javascript-and-json Flashcards
What is JSON?
JSON is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays. It is a common data format with diverse uses in electronic data interchange, including that of web applications with servers.
What are serialization and deserialization?
Serialization means to convert an object into that string, and deserialization is its inverse operation (convert string -> object).
Why are serialization and deserialization useful?
You can stream data quickly, “a whole lotta lil chunks”.
How do you serialize a data structure into a JSON string using JavaScript?
stringify method
How do you deserialize a JSON string into a data structure using JavaScript?
parse method