Skip to main content

Parsing JSON

  • Chapter
  • First Online:
Beginning JSON
  • 3558 Accesses

Abstract

In the last chapter, I discussed how to convert a JavaScript value into a valid JSON text using JSON.stringify. In Chapter 4, you learned how JSON utilizes JavaScript’s literal notation as a way to capture the structure of a JavaScript value. Additionally, you learned in that same chapter that JavaScript values can be created from their literal forms. The process by which this transformation occurs is due to the parsing component within the JavaScript engine. This brings us full circle, regarding the serializing and deserializing process.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Wikipedia, “Tree (data structure),” http://en.wikipedia.org/wiki/Tree_%28data_structure%29#Terminology , modified January 2015.

  2. 2.

    ECMA International, ECMAScript Language Specification, Standard ECMA-262, Edition 5.1, Section 7.3, www.ecma-international.org/ecma-262/5.1/#sec-7.3 , June 2011.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Ben Smith

About this chapter

Cite this chapter

Smith, B. (2015). Parsing JSON. In: Beginning JSON. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0202-9_6

Download citation

Publish with us

Policies and ethics