Skip to content

0.12.0

Compare
Choose a tag to compare
@maciejhirsz maciejhirsz released this 06 Sep 16:45
· 15 commits to master since this release
2a57273
  • Updated to edition 2018.
  • Simplified reading escaped unicode in strings a bit.
  • Provided From<&[T]> implementation for JsonValue where T: Into<JsonValue> (closes #160).
  • object! and array! macros will no longer re-allocate (closes #159).
  • object! and array! macros can be now used without being imported into local scope (by using json::object! or json::array!, thanks @matthias-t).
  • BREAKING HashMap and BTreeMap conversions are now more generic, working for any pair of K key and V value where K: AsRef<str> and V: 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 an Object.