Struct serialize::json::Encoder
pub struct Encoder<'a> { // some fields omitted }
A structure for implementing serialization to JSON.
Methods
impl<'a> Encoder<'a>
fn new<'a>(wr: &'a mut Writer) -> Encoder<'a>
Creates a new JSON encoder whose output will be written to the writer specified.
fn buffer_encode<T: Encodable<Encoder<'a>, IoError>>(to_encode_object: &T) -> ~[u8]
Encode the specified struct into a json [u8]
fn str_encode<T: Encodable<Encoder<'a>, IoError>>(to_encode_object: &T) -> ~str
Encode the specified struct into a json str