I have a large JSON response where I only need to update certain fields. Want to filter down the response, but the key/value pair I'm interested in is nested at varying levels. I tried to use the jsonpath ..
notation to find it.
* eval var testcaseArray = response.collection.item.filter(o => o..name.includes(/^(RD-T|RES-T)/));
But the second ellipses is not recognized as valid Javascript syntax.
org.graalvm.polyglot.PolyglotException: SyntaxError: Unnamed:1:59 Expected ident but found .
var testcaseArray = response.collection.item.filter(o => o..name.includes(/^(RD-T|RES-T)/))