Function json_api::to_vec_pretty
[−]
[src]
pub fn to_vec_pretty<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
pretty-printed JSON byte vector.