Groovy web console

subscribe to the feed Subscribe
to this
site

tst

Published 2 months ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def slurper = new groovy.json.JsonSlurper()
def zatwierdzoneKodyJSON = slurper.parseText('[{"id_podmiotu":14000, "kod_podmiotu":11111}]');
if(!zatwierdzoneKodyJSON.findAll{ it.id_podmiotu.equals(123)}){
return "weszło"
}else{
return "nie weszło"
}