-
Book Overview & Buying
-
Table Of Contents
Rust for C++ Developers
By :
When working with structured text data in a format such as JSON, YAML, or TOML, we refer to serialization as the process of writing in-memory data out in the structured format, and to deserialization as the process of reading from the structured format and of producing a matching, in-memory copy of the data.
One of the most popular and useful crates in the Rust ecosystem is the serde crate. The name serde is a combination of "serialization" and "deserialization," and it provides a convenient interface for performing these important operations for a wide variety of structured file formats. In this section, we'll develop a simple application to load JSON data into Rust structures using serde, modify it, and write the results back into a new JSON file.
To begin, we will create a new Rust project locally to hold our work. A completed version of this project is available on GitHub...