// FIXME #8335: yuck, Rust -> str -> JSON round trip! No way to .encode
// straight to the Rust JSON representation.
let crate_json_str = do std::io::with_str_writer |w| {
- crate.encode(&mut extra::json::Encoder(w));
+ crate.encode(&mut json::Encoder(w));
};
- let crate_json = match extra::json::from_str(crate_json_str) {
+ let crate_json = match json::from_str(crate_json_str) {
Ok(j) => j,
- Err(_) => fail!("Rust generated JSON is invalid??")
+ Err(_) => fail2!("Rust generated JSON is invalid??")
};
json.insert(~"crate", crate_json);