I have an array of objects. I would like one object to depend on another one in the array, but it might not always be at the same index in the array, it would be nice to be able to reference it thanks to one of its attributes (A name field for example).
I know I could register each objects in a global map, but it would be nice if it was incorporated into the language. Or maybe extend it to a query language (I found out https://github.com/json-path/JsonPath maybe)
I have an array of objects. I would like one object to depend on another one in the array, but it might not always be at the same index in the array, it would be nice to be able to reference it thanks to one of its attributes (A
namefield for example).I know I could register each objects in a global map, but it would be nice if it was incorporated into the language. Or maybe extend it to a query language (I found out https://github.com/json-path/JsonPath maybe)