Skip to content
OrvilleChomer edited this page Dec 26, 2017 · 19 revisions

This JavaScript Library is focused on working with JavaScript objects to do things that are (as of yet) not built into the the JavaScript language.

Currently it allows you to serialize and deserialize Js Objects and Arrays. "What?" you say. "JavaScript already does that!" It does, if there is no circular references, if there are no multiple properties pointing to the same object or array.

  • This library allows you to serialize these sorts of object without any problems, and then convert them back to their original form.
  • It does not add anything extra to the original or the copy.
  • It can optionally serialize any of an object's methods.
  • It does all this through the input object's entire object hierarchy.

API List - Get a breakdown of this library's API.

Serialized Object Contents

When you serialize a JavaScript object or array with this library, it creates a new JavaScript object that we call the "serialized" object. Here's a few things about this object:

  • It has a special format.
  • It contains meta data about the serialization process (like the start time, end time, and total time to process).
  • It contains shameless promotion values in the shamelessSelfPromotionSection property!
  • Most importantly, it contains an indexed array of command objects which can be used to recreate a copy of the original object! The serialization process generates these command objects.
  • Finally, this object is formatted in such a way that we can use: JSON.stringify() on it without any problems!

Deserialized Object Contents

When you deserialize a serialized object, it creates a "Deserialized Object." A few things about this object:

  • It is not a copy of the original object!
  • You can get a copy of the original object from its .output property!
  • This object is in a particular format.
  • It contains meta data about the deserialization process (including performance metrics).
  • Again, it's output property will contain a copy of the original object that was serialized.