You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how can I easily select obj2 or easily test if obj2 has a value over 10 and then add a 3rd object for example? Right now the only idea i have is to make a for with if else and that is quite cumbersome compared to jsonPath syntax like [?@.name == "obj2"].value
The text was updated successfully, but these errors were encountered:
I agree that the for loop is cumbersome for this, and I have been thinking about supporting something similar to the JsonPath syntax. It might still take a while to get that into the language, though.
Lets say I have a array of objects and want so select a specific one, what is the best way to do it?
example:
[{ "name": "obj1", "value": 10},{ "name": "obj2", "value: 20}]
how can I easily select obj2 or easily test if obj2 has a value over 10 and then add a 3rd object for example? Right now the only idea i have is to make a for with if else and that is quite cumbersome compared to jsonPath syntax like [?@.name == "obj2"].value
The text was updated successfully, but these errors were encountered: