I have this so far in my goal to Parse this JSON data in Rust:
extern crate rustc_serialize;
use rustc_serialize::json::Json;
use std::fs::File;
use std::io:
There is a brief and complete example of how to read JSON from file in serde_json::de::from_reader docs.
Here is a short snippet for:
Enjoy:
let file = fs::File::open("text.json")
.expect("file should open read only");
let json: serde_json::Value = serde_json::from_reader(file)
.expect("file should be proper JSON");
let first_name = json.get("FirstName")
.expect("file should have FirstName key");