SK07
7 years agoContributor
Groovy - validate Json array
Json: "prodS": {"langTrans": [{ "Id": "11", lang="EN"}, {"Id": "11", lang="FR"},{ "Id": "12", lang="EN"}, {"Id": "12", lang="FR"}], "rates":[{"Id":"11","rate": 100},{Id":"12","rate":200}] } Here we ...
- 7 years agoSK07
Here you go:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/json/QueryReferencedDataAndCompare.groovy
See demo
https://ideone.com/qSWfL1
Use log.info instead of println.