Add indent flag to to json (first draft) (#4571)

* Add indent flag to `to json` (first draft)

* Run cargo fmt

* Update examples / tests

* Change order of examples
This commit is contained in:
Joseph T. Lyons
2022-02-20 17:29:19 -05:00
committed by GitHub
parent 9b2a022f5b
commit 5bf2ffeaf5
3 changed files with 84 additions and 17 deletions

View File

@ -2,7 +2,9 @@ pub use self::de::{
from_iter, from_reader, from_slice, from_str, Deserializer, StreamDeserializer,
};
pub use self::error::{Error, ErrorCode, Result};
pub use self::ser::{to_string, to_string_raw, to_vec, to_writer, Serializer};
pub use self::ser::{
to_string, to_string_raw, to_string_with_indent, to_vec, to_writer, Serializer,
};
pub use self::value::{from_value, to_value, Map, Value};
pub mod builder;