One of the most impressive libraries with Rust is ‘serde’ and their respective libraries. There are a lot of cases where you want to convert serde_json other serde_X formats and back.

In this example, we convert a serde_json::Value to a serde_cbor::Value.