Skip to content

canonicalJSONSize

canonicalJSONSize(json) → number · JSON

Get the size in bytes (UTF-8) of the canonical JSON form.

  • json (required): JSON string or UDM value
utlx
// See Chapter 24 for JSON processing.
{
  sizeBytes: canonicalJSONSize(renderJson($input))
}

Released under AGPL-3.0.