Trait serialize::json::ToJson [] [src]

pub trait ToJson {
    fn to_json(&self) -> Json;
}
🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

A trait for converting values to JSON

Required Methods

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

Converts the value of self to an instance of JSON

Implementors