...
The encode()
operator takes an optional map as an argument containing options for encoding.
option | values | description |
---|---|---|
canonical | true, false | print keys in sorted order (creates canonical string) |
pretty | true, false | pretty prints the encoding (newlines and indents) if true |
...