I want to deserialize the chemical elements JSON file from Bowserinator on github using Serde. For this I created a structure with all the needed fields and derived the need
Any field that can be null should be an Option type so that you can handle the null case. Something like this?
Option
#[derive(Serialize, Deserialize, Debug, Clone)] pub struct Element { ... color: Option, ... }