Skip to content

Releases: serde-rs/json

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

v0.7.4

30 Jun 02:15
v0.7.4
d72ae7e
Compare
Choose a tag to compare
  • Fix preserve_order feature flag (#91)
  • Speed up serialization of integers and strings (#87 and #89)

v0.7.3

25 Jun 22:43
v0.7.3
e670e13
Compare
Choose a tag to compare
  • Correctly escape ASCII control characters in strings (#85)

v0.7.2

24 Jun 15:25
v0.7.2
5773980
Compare
Choose a tag to compare
  • Adds a preserve_order feature to use LinkedHashMap instead of BTreeMap in Value::Object (#80)

v0.7.1

26 May 17:09
v0.7.1
Compare
Choose a tag to compare
  • Improved ergonomics: ToJson, FromStr, ToString (#63 and #64)
  • RFC6901 JSON pointer implementation for Value (#41)
  • lookup(&str) is deprecated in favor of the new pointer(&str) (#41)
  • Bugfix related to missing_field (#61)

v0.6.1

05 Jun 22:37
v0.6.1
Compare
Choose a tag to compare
Release 0.6.1

v0.7.0

05 Jun 22:37
v0.7.0
Compare
Choose a tag to compare
Release 0.7.0

v0.6.0

05 Jun 22:37
v0.6.0
Compare
Choose a tag to compare
Release 0.6.0