Questions tagged [serde]

Serde stands as a dynamic framework designed to efficiently and generically handle the serialization and deserialization of Rust data structures.

Deserialize a series of values that includes an enumeration tag using the Serde library

Trying to parse some JSON data from a WebSocket that is challenging for Serde to deserialize. The API can return various responses, but they always include at least three values at the top level. The first value is an ID, the second is the data as an objec ...

Any tips on how to convert a bincode serialized data into serde_json::Value?

I'm currently working on an IPC implementation where a process serializes a struct using bincode. However, on the receiving end, the process is unaware of the structure it's receiving. I want to achieve something similar to: let parsed: Result&l ...

Transforming unprocessed text into a regular string in the Rust programming language

I've been working on decoding raw bytes using base64::decode and I keep getting output that looks like {"foo":1,"bar":"first"}. However, serde_json requires the format to be { "foo":1, "bar":"first" } So, I am tasked with converting let raw = r#"{"fo ...