Rust Programming Tutorial #42 – Parsing JSON
33.4K views on YouTube
I tend to use JSON in almost all of my projects, the simple data format is friendly and supported by pretty much every programming language, including Rust. By using the ‘serde_json’ library you are able to work with JSON – in this video I talk specifically about parsing JSON.
Parsing/decoding JSON can be done in two ways: you can access data using a simple array-like data structure (serde_json::Value) or you can conveniently map the JSON string to an actual programmer-defined struct. In this video I show you both ways.
This is all thanks to the serde_json library, take a look and say thank you here:
https://github.com/serde-rs/json
Follow me on Twitter @dcode!
If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!