Function json_api::to_vec [] [src]

pub fn to_vec<T, U>(value: T, query: Option<&Query>) -> Result<Vec<u8>, Error> where
    T: Render<U>,
    U: PrimaryData

Render type T as a Document<U> and then serialize it as a JSON byte vector.