Chapter 7. Data Serialization

In this chapter, we will cover the following recipes:

  • Deserializing JSON to JavaScript objects
  • Serializing objects to JSON strings
  • Decoding base64 encoded binary data
  • Encoding binary data or text to base64
  • Serialization of binary data into JSON
  • Serializing and deserializing cookies
  • Serializing form into request strings
  • Reading XML documents with DOMParser
  • Serializing of XML document at the client side

Introduction

One of the basic concepts of data storage and transmission is serialization. We are going to go through some of the ways to prepare the data for either sending to another environment or saving it permanently. Besides that we will see the ways for reading some of the data serialized by another computer environment. ...

Get HTML5 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.