This is a simple and somewhat limited way to do this. You will be able to extract individual values pretty easily but if you want a comprehensive data model of the JSON data structure, this isn't the way to go. If the same property name is used in multiple objects within a JSON data structure, this won't work as well.
Basically this method uses Regular Expressions (using JMeter's Regular Express Extractor) to extract individual values that you're looking for specifically.
Link: http://alexandru-ersenie.com/2009/09/14/json-and-jmeter-extract-json-response/
For more complex requirements, someone has posted about using the BSF PostProcessor and Javascript.
Link: http://www.havecomputerwillcode.com/blog/?p=500
No comments:
Post a Comment