liveBook · Manning

Serde_json

serde_json is a Rust crate that serializes and deserializes values using the JSON data format through Serde.

How 2 Manning books explain it

Refactoring to Rust

serde_json is a Rust crate that converts between Serde's generic data model and JSON.

How it is used
Bridges typed Rust structures and JSON strings during integration with dynamic-language data formats.
How deep it goes
Explains dependency setup, derive-based deserialization, type inference errors, and mismatched-type failures without covering advanced customization.
Examples
Uses typed name-and-value JSON objects, Cargo configuration, compiler diagnostics, and a Python-equivalent summation program.
What you can do after
Build typed JSON parsers from strings using serde_json::from_str and Serde derive attributes.

Read how Refactoring to Rust explains serde_json →

Rust Servers, Services, and Apps

serde_json is a Rust library that provides JSON serialization and deserialization through Serde.

How it is used
Connects a Rust web application to a backend REST service by converting JSON responses into application data.
How deep it goes
Demonstrates dependency setup, matching structs, response-body handling, and deserialization, without exploring parser internals.
Examples
Uses a Tutor struct, a /tutors/ endpoint, a Vec<Tutor> result, and a template displaying tutor_name.
What you can do after
Apply it via serde_json to deserialize an HTTP JSON payload into strongly typed Rust structures.

Read how Rust Servers, Services, and Apps explains serde_json →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.