Skip to content

prettyPrintFormat

prettyPrintFormat(value, format) → string · Format

Pretty-print a UDM object in the specified format.

  • value (required): UDM value to format

  • format (required): "json", "xml", or "yaml"

utlx
prettyPrintFormat($input, "json")        // indented JSON output

Released under AGPL-3.0.