Function isValidJson

  • Check if the given value is a valid Json value, i.e., a value that is serializable to JSON.

    Returns

    Whether the value is a valid Json value.

    Parameters

    • value: unknown

      The value to check.

    Returns value is Json