I would like to know how to iterate an array of primitives such as array of int or if it is as a simple array of string.
{
"printers":[
"HP-1234",
"HP-Inkjet"
]
}
I would like to iterate the array and do some thing like this:
for( String obj:printers) {
if(obj.contains("HP")) {
//do something here
}
}
How can i do this using JSONata?
Any help will be appreciated!