March 2015
Beginner
324 pages
9h 15m
English
CHAPTER 7
![]()
Persisting JSON: I
In Chapter 5, you learned how JSON.stringify captures the data possessed by an identified JavaScript value. This occurs by reverse engineering the specified target into its literal form, in accordance with the JSON grammar, thus capturing the current state of a model for a particular application as JSON text. You further learned that JSON.parse taps into the innate ability of the JavaScript engine to “parse” the literals that make up a valid JSON text. This revives the state from a previous model for use within the existing session.
To illustrate how to use JSON.parse, each example in Chapter 6 was preceded by the ...
Read now
Unlock full access