Need to extract JSON data from a JMeter response? -
in jmeter, need extract fields (city, classification, , chain) json response:
{ "storecode": "111243", "storename": "spencer - sec 14 gurgaon", "address1": "gurgaon-sector-14", "address2": "ncr", "pin": "110000", "city": "ncr", "classification": "vol 4", "chain": "spencers", "version": "20281", "visittype": "weekly" } can done using regular expression extractor? there option?
if piece of json response - makes sense use regular expression extractor.
if receive larger or more complicated structure - it's better use special json path extractor available through plugin. json path expressions json response $.city, $.chain, etc.
see "parsing json" chapter of using xpath extractor in jmeter guide more details on json path language , on how install plugin.
Comments
Post a Comment