Checks if a string is valid JSON.

  • Parameters

    • value: string

      The string to validate.

    • options: IsJSONOptions = {}

      Options for JSON validation.

    Returns boolean

    true if the string is valid JSON, false otherwise.