json
JSON implementation in Rust
0.12.4
25M downloads/mo
#1886 most downloaded on crates.io
maciejhirsz/json-rust
What this package is like to depend on
Last release 6 years ago
no release in 18 months
Ships unpredictably
gaps range from 4 weeks to 1.4 years
Rarely documented
notes for 9 of 52 stable releases
2 versions withdrawn
withdrawn after publishing
10 years old
54 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
54 releases · Jun 2016 to Mar 2020Releases
latest 54-
0.12.418 Mar 2020 -
0.12.317 Mar 2020 withdrawnRelease notes
Open source →- Improved macro syntax:
- Object
"key" => valuepair can be now written as either"key": valueorkey: valuewithout quotes, as long askeyis 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!orobject!from within another macro. nullis a keyword inside of either macro.- This is a backwards compatible change, although mixing notations within a single macro invocation is not permitted.
- Object
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 };
- Improved macro syntax:
-
0.12.211 Mar 2020 -
0.12.114 Jan 2020 -
0.12.006 Sep 2019Release notes
Open source →- Updated to edition 2018.
- Simplified reading escaped unicode in strings a bit.
- Provided
From<&[T]>implementation forJsonValuewhereT: Into<JsonValue>(closes #160). object!andarray!macros will no longer re-allocate (closes #159).object!andarray!macros can be now used without being imported into local scope (by usingjson::object!orjson::array!, thanks @matthias-t).- BREAKING
HashMapandBTreeMapconversions are now more generic, working for any pair ofKkey andVvalue whereK: AsRef<str>andV: 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 anObject.
-
0.11.1512 Aug 2019Nothing published for this version
-
0.11.1404 Jun 2019Nothing published for this version
-
0.11.1317 Jan 2018Release notes
Open source →- Fixes an overflow that lead to a panic in extremely large integers (see issue #139).
-
0.11.1210 Nov 2017Release notes
Open source →- Optimized away unnecessary copying in the parser stack machine, should result in parsing performance increased by up to 20%.
-
0.11.1110 Nov 2017 -
0.11.1007 Oct 2017 -
0.11.928 Jul 2017 -
0.11.803 Jul 2017Nothing published for this version
-
0.11.726 Jun 2017Nothing published for this version
-
0.11.615 Mar 2017Nothing published for this version
-
0.11.521 Jan 2017Nothing published for this version
-
0.11.402 Jan 2017Nothing published for this version
-
0.11.330 Nov 2016Nothing published for this version
-
0.11.225 Nov 2016Nothing published for this version
-
0.11.123 Nov 2016Nothing published for this version
-
0.11.028 Oct 2016Nothing published for this version
-
0.10.326 Oct 2016Nothing published for this version
-
0.10.211 Aug 2016Nothing published for this version
-
0.10.101 Aug 2016Nothing published for this version
-
0.10.022 Jul 2016Nothing published for this version
-
0.9.118 Jul 2016Nothing published for this version
-
0.9.016 Jul 2016Nothing published for this version
-
0.8.810 Jul 2016Nothing published for this version
-
0.8.707 Jul 2016Nothing published for this version
-
0.8.606 Jul 2016Nothing published for this version
-
0.8.504 Jul 2016Nothing published for this version
-
0.8.401 Jul 2016Nothing published for this version
-
0.8.201 Jul 2016 withdrawnNothing published for this version
-
0.8.130 Jun 2016Nothing published for this version
-
0.8.028 Jun 2016Nothing published for this version
-
0.7.426 Jun 2016Nothing published for this version
-
0.7.326 Jun 2016Nothing published for this version
-
0.7.224 Jun 2016Nothing published for this version
-
0.7.122 Jun 2016Nothing published for this version
-
0.7.022 Jun 2016Nothing published for this version
-
0.6.121 Jun 2016Nothing published for this version
-
0.6.020 Jun 2016Nothing published for this version
-
0.5.120 Jun 2016Nothing published for this version
-
0.5.019 Jun 2016Nothing published for this version
-
0.4.018 Jun 2016Nothing published for this version
-
0.3.417 Jun 2016Nothing published for this version
-
0.3.316 Jun 2016Nothing published for this version
-
0.3.215 Jun 2016Nothing published for this version
-
0.3.114 Jun 2016Nothing published for this version
-
0.3.014 Jun 2016Nothing published for this version
-
0.2.114 Jun 2016Nothing published for this version
-
0.2.012 Jun 2016Nothing published for this version
-
0.1.112 Jun 2016Nothing published for this version
-
0.1.012 Jun 2016Nothing published for this version