This post is intended for people coming from high level languages, such as Ruby or JavaScript and who may be surprised with the complexity of the JSON serialization infrastructure in Rust.
This is the second part of the 2 part post that deals with decoding JSON strings into Rust values. First part is available here.
Overview
When working with JSON deserialization, we’re interested in Decodable and Decoder traits.
As with serialization, hex
and base64
modules are not relevant to JSON
deserialization, so we should not pay attention to them.