Expand description
Msgpack serialization for serde_json::Value and nodedb_types::Value.
Value::DateTime and Value::NaiveDateTime are written as the instant
ext (fixext8, see instant_ext). Duration, Decimal, and Geometry
are written as strings, except a Decimal that holds a u64 above
i64::MAX, which is a uint64. Vector is a float64 array, ArrayCell
a map, and Range / Record are nil.
Functionsยง
- json_
to_ msgpack - Serialize a
serde_json::Valueto MessagePack bytes. - json_
to_ msgpack_ or_ empty - Serialize a
serde_json::Valueto MessagePack bytes, returning an empty msgpack map (0x80) on failure. - value_
to_ msgpack - Serialize a
nodedb_types::Valueto standard MessagePack bytes.