regex - Jmeter - what is the regular expression to extract a boolean value from a response -
what regex should enter in regular expression extractor component - field: regular expression boolean field in response called "enabled". tried reference string - "enabled" : "(.+?)" - not working. please help.
- you don't need surround regular expression quotation marks
true
not surrounded them you need either add comma end of regular expression like:
"enabled": (.+?),
or better change match "word" like:
"enabled": (\w+)
in general easier use json path postprocessor or json path extractor plugin in order deal json data, relevant json path query simple as:
$.enabled
Comments
Post a Comment