Trait rustc_serialize::json::ToJson [-] [+] [src]

pub trait ToJson {
    fn to_json(&self) -> Json;
}

A trait for converting values to JSON

Required Methods

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON

Implementors