pub fn encode_json(record: &Record) -> Result<String, Error>
Encode a record to pretty-printed JSON (the readable interchange form).