Function json_api::to_writer_pretty
[−]
[src]
pub fn to_writer_pretty<W, T, U>(
writer: W,
value: T,
query: Option<&Query>
) -> Result<(), Error> where
W: Write,
T: Render<U>,
U: PrimaryData,
Render type T
as a Document<U>
and then serialize it as pretty-printed
JSON into the IO stream.