jsonMatcher property

String? jsonMatcher
getter/setter pair

The type of JSONPath match that will be applied to the JSON output (ContentMatcher.content) Possible string values are:

  • "JSON_PATH_MATCHER_OPTION_UNSPECIFIED" : No JSONPath matcher type specified (not valid).
  • "EXACT_MATCH" : Selects 'exact string' matching. The match succeeds if the content at the json_path within the output is exactly the same as the content string.
  • "REGEX_MATCH" : Selects regular-expression matching. The match succeeds if the content at the json_path within the output matches the regular expression specified in the content string.

Implementation

core.String? jsonMatcher;