Skip to content

Releases: serde-rs/json

v0.9.0-rc2

24 Jan 03:47
v0.9.0-rc2
286edcd
Compare
Choose a tag to compare
v0.9.0-rc2 Pre-release
Pre-release
Release 0.9.0-rc2

v0.9.0-rc1

24 Jan 03:47
v0.9.0-rc1
90ed218
Compare
Choose a tag to compare
v0.9.0-rc1 Pre-release
Pre-release
Release 0.9.0-rc1

v0.8.6

18 Jan 22:51
v0.8.6
f853fc9
Compare
Choose a tag to compare
  • Restore support for building with Rust 1.8.0 (#198)

v0.8.5

18 Jan 05:06
v0.8.5
9407642
Compare
Choose a tag to compare
  • Propagate EOF found while checking trailing whitespace (#194, thanks @kchmck)

v0.8.4

07 Dec 05:18
v0.8.4
f0e7626
Compare
Choose a tag to compare
  • Avoid unbounded stack usage by limiting recursion go 128 levels of nesting during deserialization (#163)
  • Add a mutable JSON Pointer method Value::pointer_mut similar to the existing immutable Value::pointer (#171)
  • Allow unit enum variants as map keys when serializing (#172)

v0.8.3

16 Oct 19:40
v0.8.3
d2fa590
Compare
Choose a tag to compare
  • Fix serde_json::to_value(f64::NAN) to return Value::Null instead of Value::F64(NAN). Null is the representation of NaN used elsewhere by serde_json. (#155, thanks @traviskaufman)

v0.8.2

15 Sep 06:53
v0.8.2
b4022a2
Compare
Choose a tag to compare
  • Allow serde_json::to_value to take ownership of its argument, which is more friendly to iterator adapters (#149)
  • Allow io::Write trait objects to be used with serde_json::to_writer and to_writer_pretty (#150)

v0.8.1

11 Aug 16:25
v0.8.1
e9f8560
Compare
Choose a tag to compare
  • Fix the preserve_order feature by bumping linked-hash-map dependency (#136)

v0.8.0

28 Jul 06:51
v0.8.0
c1d1158
Compare
Choose a tag to compare
  • This version of serde_json requires Serde ^0.8
  • Unit enum variants are now serialized as strings, for example enum E { First, Second } will be serialized as "First" rather than the old format {"First":[]}; deserialization is supported from both formats (#76)
  • Improved heuristic for serializing floating point values, for example 1.7976931348623157e308 instead of 17976931348623157000000000000000000000000...0000000000000 (#88)
  • Parsing large numbers now results in an error rather than f64::INFINITY (#114)
  • Object/ArrayBuilder::unwrap() has been renamed to build() to reflect the fact that they do not panic (#93)
  • Value::as_string() has been renamed to as_str() and Value::as_boolean() has been renamed to as_bool() to improve consistency (#92)
  • The serde_json::Error::FromUtf8 variant has been removed; this error was impossible to trigger (#106)
  • The serde_json::ser::escape_bytes function has been removed; this function was never intended to be public and there are no known uses (#94)
  • The nightly-testing feature has been renamed to unstable-testing to align with community practices (#111)
  • Fix incorrectly placed brackets when serializing to_value of a newtype struct (#77)

v0.8.0-rc1

25 Jul 16:29
v0.8.0-rc1
363c4e6
Compare
Choose a tag to compare
v0.8.0-rc1 Pre-release
Pre-release
Release 0.8.0-rc1