Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The encode() operator takes an optional map as an argument containing options for encoding. 

optionvaluesdescription
canonicaltrue, falseprint keys in sorted order (creates canonical string)
prettytrue, falsepretty prints the encoding (newlines and indents) if true

...