O'Reilly logo

HTML5 Data and Services Cookbook by Mite Mitreski, Gorgi Kosev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required