strip extra iteration when initialising ObjectAsVec #29 (Thanks @meskill)
impl Deserializer
for Value
. This enables deserialization into other types.
improve returned lifetimes #19 (Thanks @meskill)
add cowkeys
featureflag
cowkeys
uses Cow<str>
instead of &str
as keys in objects. This enables support for escaped data in keys.
add From
methods for type like u64 to easily convert into Value<'a>
add Clone, Debug, Eq, PartialEq, Hash
to OwnedValue
add Hash
to Value
implement numeric visitor, visit_u8, i8 etc.
add get_mut
, insert
to serde_json_borrow::Map
add insert_or_get_mut
to serde_json_borrow::Map as entry()
alternative
add From<&Value> for serde_json::Value
add From<serde_json_borrow::Map> for serde_json::Map
Export ObjectAsVec
as serde_json_borrow::Map
to easy migration from serde_json::Map
Impl Default
for serde_json_borrow::Map
add From<Vec
> for ObjectAsVec
- Add
OwnedValue::from_slice
,OwnedValue::from_str
andOneValue::from_string
- Add
Deref<Target=Value>
forOwnedValue
#16
- Implement
Display
on serde_json_borrow::Value #15
- Add Object access methods on Objects via
ObjectAsVec
wrapper #12
json objects are backed by Vec
in serde_json_borrow
, but it was missing the same methods like BtreeMap
, e.g. .get
get_key_value
.
ObjectAsVec provides these methods.
- Add as_object, as_array methods #8
- Add serialization #6 (Thanks @dtolnay)