Function isValidJson

Check if string is valid JSON

  • Parameters

    • value: string

      String value to be checked

    Returns boolean

    Boolean indicating if string value is a valid JSON