pub fn encode(value: &Value) -> Result<Vec<u8>>
Encode a portable JSON value or report serialization failure.