JMeter – Working with JSON
This post explains what is JSON and how to Send JSON Payload in HTTP Request using JMeter. What is JSON? JSON is simply a data format, but one which is more naturally fit for browser data consumption. The reason for this is that JSON is a subset to JavaScript, the de facto programming language used in all browsers. By structuring a data payload as a JSON response, you are effectively bypassing the need to parse an XML document in a browser — typically done via JavaScript of course — to get to the actual data. In this sense, JSON uses a stripped down syntax compliant with the native JavaScript interpreter provided on all browsers. Access and navigation to JSON data is done through the same standard JavaScript notation used to access string, array or hashtable values in a typical JavaScript application. Listing 1.1 illustrates what a JSON payload would look like. Listing 1.1 : JSON payload example {“item”: { “description”: { “title”: “Backroad Mountain Bikes”, “name”...
Comments
Post a Comment