silver_noodles silver_noodles - 1 year ago 131
JSON Question

How to extract complete JSON response data in JMeter?

I am new to JMeter and still in learning phase.

I am making a rest call in JMeter. The response data that i receive, i want to use it as it is in following rest call. Sample of response data that i receive is:

"expiresBy":"Sat May 02 14:49:06 EDT 2015",
"Super BA Admin",
"Super BA Admin",

For this i added a Regular Expression Extractor but i do not know what regular expression to give.

Please suggest. Thanks.

Answer Source

If you want to use response as it is , add a beanshell-post processor instead of Regular Expression Extractor.

vars.put("JSONResponse", prev.getResponseDataAsString());

Now you access it using below statement in the next request.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download