This sample demonstrates how to:

Serialize and compress JavaScript object to the in-memory stream.

Decompress and deserialize JavaScript object from the in-memory stream.

Compression Algorithms:

DEFAULT: No compression algorithms explicitly specified. Xpress is used by default.

XPRESS: Compression ratio is fair. Fastest compression and decompression speeds. Low memory requirement.

MSZIP: Compression ratio is high. Normal compression speed and fast decompression speed. Low memory requirement.