Expand description
Pretty-printing JSONs with ease.
Functionsยง
- print_
json - Pretty-print a serializable value as JSON with a default indentation of 4 spaces. Will returns an Error if the value cannot be serialized or if the output is not valid UTF-8.
- print_
json_ with_ indent - Pretty-print a serializable value as JSON with a custom indentation. Will returns an Error if the value cannot be serialized or if the output is not valid UTF-8.