Forum Discussion

venkireddy1991's avatar
venkireddy1991
Occasional Contributor
5 years ago

Best way to compare two JSON responses

 

Hi Team,

 

I would like to compare the actual JSON response with an expected JSON response by ignoring certain nodes and properties..Could you please let me know what is the best approach to do using readyapi?

 

I found a way to do the same for XML files looking for the support on JSON as well.

 

https://github.com/nmrao/groovyScripts/blob/master/compare/CompareWithIgnoreElements.groovy

Much appreciated..

 

Thanks

Andy