cargo / serde_json
serde_json
What changed in serde_json 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-15.
6 breaking3 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initserde_json 112 changes
Breaking changes 6
Formatter trait methods now return
io::Resultinstead ofserde_json::Result.The method now receives
&strinstead of&[u8].The conversion implementation was removed;
serde_json::Erroris intended to be constructed by serde_json.Deserializing from this iterator type is no longer supported; use
serde_json::from_readerinstead.Now supports only arrays and objects, rather than any JSON value.
The trait was removed; use
serde_json::to_valueinstead.
Behavior and default changes 3
The preserve_order feature is supported in no_std builds.
The writer argument is now passed by value; passing
&mut Wcontinues to work.Supports efficiently and safely deserializing borrowed data.
Fixes and other changes 3
Reports invalid UTF-8 at the first bad byte, helping developers locate the error.
Preserves the sign of -0 in arbitrary_precision mode.
Fixes comparison of large non-integer values with f32::INFINITY.