json-rust v0.12.0 Release Notes
Release Date: 2019-09-06 // over 4 years ago-
- ⚡️ Updated to edition 2018.
- Simplified reading escaped unicode in strings a bit.
- Provided
From<&[T]>
implementation forJsonValue
whereT: Into<JsonValue>
(closes #160). object!
andarray!
macros will no longer re-allocate (closes #159).object!
andarray!
macros can be now used without being imported into local scope (by usingjson::object!
orjson::array!
, thanks @matthias-t).- 💥 BREAKING
HashMap
andBTreeMap
conversions are now more generic, working for any pair ofK
key andV
value whereK: AsRef<str>
andV: Into<JsonValue>
. This means that type inference won't always work in your favor, but should be much more flexible. - You can now
.collect()
an interator of(K, V)
(with bounds same as point above) into anObject
.