Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Parse A JSON String With Serde In Rust

rust
```cargo
[dependencies]
 serde_json = "1.0.111"
```

use serde_json::Value;

fn main() {
  let text = r#"{ "color": "red" }"#;
  match serde_json::from_str::<Value>(text) {
    Ok(data) => { dbg!(data); () } ,
    Err(e) => { dbg!(e); () }
  };
}
results start

- This is a little different from the example which uses [TODO: Code shorthand span ] to get the Result. I don't have my head fully around that so I'm using this approach