Skip to content

Refering an array element without using its index #909

@maingoh

Description

@maingoh

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions