Crate jsonxf[−][src]
Jsonxf is a JSON transformer, supporting fast pretty-printing, minimizing, and similar formatting of JSON-encoded UTF-8 data in string or stream format. Use it to customize the presentation of valid JSON data.
It provides default pretty-printers (pretty_print()
,
pretty_print_stream()
) and minimizers (minimize()
,
minimize_stream()
), Formatter
for customizable JSON
formatting, and the jsonxf
command-line tool (see
jsonxf -h
for options).
Jsonxf is built for speed, and does not attempt to perform any input validation whatsoever. Valid input produces valid output, but no guarantees are offered around the detection and rejection of invalid input.
GitHub: gamache/jsonxf
Structs
Formatter |
|
Functions
minimize | Minimizes a string of JSON-encoded data. |
minimize_stream | Minimizes a stream of JSON-encoded data. |
pretty_print | Pretty-prints a string of JSON-encoded data. |
pretty_print_stream | Pretty-prints a stream of JSON-encoded data. |