Re:How to Use JSON Path
by chuckadams on Friday May 03, 2024 @11:23AM
(#40248737)
The problem with your approach is that `filter(x.price < 10)` is perfectly valid syntax, it's filter with a single boolean arg. You need something else to trigger the magic: change `x` to `it` and you have Kotlin and Groovy's shorthand syntax -- you just can't define a variable called `it` anymore. If you want closure semantics on arbitrary undefined variables, I think I might have to slap you on general principle ;)
[ Parent
| on HN ]
There are no comments on this comment yet.