djangoflash.codec.json_zlib_impl — JSON/zlib-based codec implementation

This module provides a JSON-based codec implementation that uses the zlib module to reduce the encoded flash footprint.

CodecClass Class

class djangoflash.codec.json_zlib_impl.CodecClass

Bases: djangoflash.codec.json_impl.CodecClass

JSON/zlib-based codec implementation.

decode(encoded_flash)

Restores the flash from the given zlib compressed JSON string.

encode(flash)

Encodes the given flash as a zlib compressed JSON string.