JSON Request Matchers on the Body
JSON is the most common data interchange format used for transporting data in web applications. Hoverfly can match the JSON body in incoming requests in order to respond correctly.
Last updated
JSON is the most common data interchange format used for transporting data in web applications. Hoverfly can match the JSON body in incoming requests in order to respond correctly.
Last updated
The Body request matcher is what we will be exploring here, in particular, when the body contains JSON data and you need to match on either the data, or the structure of the JSON.
Whether you are doing EXACT, JSON, JSONPartial, JSONPath or Regular Expression matching, the Matcher value must be typed into the Request Matcher's Body field as below: