Persisting JSON: I

  • Ben Smith


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.


Domain Attribute Empty String Path Attribute ASCII Character Storage Object 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Ben Smith 2015

Authors and Affiliations

  • Ben Smith
    • 1
  1. 1.NYUS

Personalised recommendations