Function getJsonSize

  • Get the size of a JSON value in bytes. This also validates the value.

    Returns

    The size of the JSON value in bytes.

    Parameters

    • value: unknown

      The JSON value to get the size of.

    Returns number