Skip to content

Releases: serde-rs/json

v1.0.61

28 Dec 19:36
v1.0.61
613d66e
Compare
Choose a tag to compare
  • Add impl From<Number> for Value (#737, thanks @imp)

v1.0.60

02 Dec 21:22
v1.0.60
6a4cd8d
Compare
Choose a tag to compare
  • Add impl FromIterator<(impl Into<String>, impl Into<Value>)> for Value, which collects a Value::Object (#733, thanks @matklad)

v1.0.59

02 Dec 21:21
v1.0.59
64bb396
Compare
Choose a tag to compare
  • In arbitrary_precision mode, return None from serde_json::Number::as_f64 if the JSON number is larger than the maximum possible f64

v1.0.58

30 Sep 21:21
v1.0.58
d6eae8f
Compare
Choose a tag to compare
  • Add serde_json::Map::remove_entry, matching the equivalent API on BTreeMap

v1.0.57

26 Jul 18:24
v1.0.57
4354fc3
Compare
Choose a tag to compare
  • Allow serde_json::Deserializer to be instantiated without consuming the serde_json::​de::Read impl (#684)

v1.0.56

29 Jun 16:43
v1.0.56
ae8d93d
Compare
Choose a tag to compare
  • Improve compiler diagnostic on missing commas inside json! macro invocation (rust-lang/rust#73777)

v1.0.55

10 Jun 08:18
v1.0.55
3aae678
Compare
Choose a tag to compare

v1.0.54

09 Jun 19:51
v1.0.54
310c55c
Compare
Choose a tag to compare
  • Add float_roundtrip feature to enable a slower but higher precision float parser based on lexical.

    Enabling float_roundtrip will use sufficient precision when parsing fixed precision floats from JSON to ensure that they maintain accuracy when round-tripped through JSON. This comes at an approximately 2x performance cost for parsing floats compared to the default best-effort precision.

    Unlike arbitrary_precision, the new float_roundtrip feature makes f64 -> JSON -> f64 produce output identical to the input. arbitrary_precision is for making JSON -> serde_json::Number -> JSON produce output identical to the input.

    serde_json = { version = "1.0.54", features = ["float_roundtrip"] }

v1.0.53

10 May 03:29
v1.0.53
5c3711e
Compare
Choose a tag to compare
  • Reduce unhelpful indentation in the {:#?} format of serde_json::Value
  • Remove some unnecessary runtime checks from Serializer::collect_str

v1.0.52

28 Apr 11:11
v1.0.52
9354bec
Compare
Choose a tag to compare