All Versions
15
Latest Version
Avg Release Cycle
84 days
Latest Release
255 days ago

Changelog History
Page 1

  • v0.12.4

    March 18, 2020
    • ๐Ÿ›  Fixes an issue with new macros requiring types to be copy.
  • v0.12.3

    March 17, 2020
    • ๐Ÿ‘Œ Improved macro syntax:
      • Object "key" => value pair can be now written as either "key": value or key: value without quotes, as long as key is an identifier.
      • If you want to use the value of the a variable as a key in the new notation, use [foo]: value.
      • When nesting objects or arrays, it's no longer necessary to use invoke array! or object! from within another macro.
      • null is a keyword inside of either macro.
      • This is a backwards compatible change, although mixing notations within a single macro invocation is not permitted.

    Example

    Instead of:

    let obj = object! { "foo" =\> array![1, 2, json::Null], "bar" =\> 42};
    

    You can now write:

    let obj = object! { foo: [1, 2, null], bar: 42};
    
  • v0.12.2

    March 11, 2020
    • ๐Ÿ›  Fixes #152 & #153.
    • ๐Ÿ›  Fixed a whole bunch of warnings and some formatting.
  • v0.12.1

    January 14, 2020
    • ๐Ÿ›  Fixes panics in string generation (#168).
    • ๐Ÿ›  Fixes an old link to documentation in doc comments (#170).
  • v0.12.0

    September 06, 2019
    • โšก๏ธ 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.
  • v0.11.13

    January 17, 2018
    • ๐Ÿ›  Fixes an overflow that lead to a panic in extremely large integers (see issue #139).
  • v0.11.12

    November 10, 2017
    • ๐ŸŽ Optimized away unnecessary copying in the parser stack machine, should result in parsing performance increased by up to 20%.
  • v0.11.11

    November 10, 2017
    • ๐Ÿ›  Fixes an issue when parsing objects with non-unique names (#136).
    • ๐Ÿ›  Fixed a warning on #[must_use] (#119).
    • ๐Ÿ—„ Deprecated Object::override_last, it was only public out of necessity before pub(crate) was introduced.
  • v0.11.10

    October 07, 2017

    Thanks to @Yoric for contributions:

    • ๐Ÿ‘€ Implemented dump and pretty for Object, see #131
    • ๐Ÿ‘€ Two string JsonValues are now equal even if one is a Short while the other is a String variant, see #126
    • ๐Ÿ‘€ The object! macro now handles trailing commas, see #125
  • v0.11.9

    July 28, 2017
    • ๐Ÿ–จ Numbers created from parts are now automatically normalized, and print out expected values (Issue #114, thanks again @lpbak).