Forum Discussion
Hi Nmenon81,
The following article may give you some tips or ideas: How Do I Compare Two Dynamic JSON Responses?
- Nmenon817 years agoOccasional Contributor
Thank you very much for this response. I will try this out.
Can I also use this for comparing my JSON response to my JDBC response?
- Nastya_Khovrina7 years ago
Alumni
Hi,
Yes, you can replace the JSON strings in the provided script with property expansions that point to the responses of a JDBC Test Step with the "Get Data" Tool. Please see the details about the Get Data functionality here: https://support.smartbear.com/readyapi/docs/testing/properties/get-data.html
- Nmenon817 years agoOccasional Contributor
Once again thank you for the solution. This works perfectly on JSON-JSON compare but when I set the String response = JDBC responseasXML then I get a jackson parser error. I am unable to find out where exactly is the issue. What are some of the things I should be looking at to resolve this issue?
Error Message - com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'CSP001A': was expecting ('true', 'false' or 'null') at [Source: (String)"CSP001A"; line: 1, column: 15] error at line: 19