How do you get number of an element in an API response?
For example, if your response is
{
element: value1,
element: value2,
element:value 3
}
I want to check if the occurrence of element in the response is let’s say greater than 2.
How do you get number of an element in an API response?
For example, if your response is
{
element: value1,
element: value2,
element:value 3
}
I want to check if the occurrence of element in the response is let’s say greater than 2.
Alex,
Here are some examples on how to access the JSON data: http://mrhaki.blogspot.com/2011/11/grassroots-groovy-reading-json-with.html