Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
validate id in json response and pull the details associated with the id into the report
Comments
-
An example JSON array, based on what you seem to describe:
[ { "id" : 1, "name" : "john", "number" : 123 }, { "id" : 2, "name" : "jane", "number" : 456 }, { "id" : 3, "name" : "joe", "number" : 789 } ]
Name for id 2 would be: /root/item[id='2']/name/text()
Number for id 2 would be: /root/item[id='2']/number/text()0 -
Thank you, i will try the xpath
0