pub fn encode(value: &Value, compress: bool) -> Vec<u8> ⓘ
Serialize value to JSON bytes, gzip-compressing when compress is set.
value
compress