Skip to content

v0.8.0

Compare
Choose a tag to compare
@dtolnay dtolnay released this 28 Jul 06:51
· 1440 commits to master since this release
v0.8.0
c1d1158
  • 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)