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.

  1. you don't need surround regular expression quotation marks true not surrounded them
  2. you need either add comma end of regular expression like:

    "enabled": (.+?), 

    or better change match "word" like:

    "enabled": (\w+) 

    regular expression

  3. in general easier use json path postprocessor or json path extractor plugin in order deal json data, relevant json path query simple as:

    $.enabled 

    json path


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -