pub fn value_to_json(value: Value) -> Result<Value, Error>
Convert to plain JSON, rejecting bytes and non-finite floats.