Crate compress_json_rs

Source

Constants§

CONFIG
Default configuration matching the TypeScript defaults

Functions§

add_value
Recursively add a JSON value to memory, returning its key
compress
Compress a JSON object into its compressed representation
decode
Decode a single key into a JSON Value
decompress
Decompress a compressed representation back into JSON
make_memory
Create a new in-memory Memory instance
mem_to_values
Convert internal store to values array
trim_undefined
Remove keys with null values from a JSON object (shallow)
trim_undefined_recursively
Recursively remove keys with null values in nested JSON objects

Type Aliases§

Compressed
Compressed representation: (values array, root key)
Key
Key type for compressed references