Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path as an array #31

Open
fabianTMC opened this issue Nov 16, 2017 · 0 comments
Open

Path as an array #31

fabianTMC opened this issue Nov 16, 2017 · 0 comments

Comments

@fabianTMC
Copy link
Contributor

I have an object similar to this:

{
    "1": [
        {"a": "valueA", "b": "valueB"},
        {"a": "valueC", "b": "valueD"},
    ],
    "2": [
        {"a": "valueE", "b": "valueF"},
        {"a": "valueG", "b": "valueH"},
    ]
}

I want to apply a transformation across all arrays of each key in the object in a similar manner. Using path, I can pick up on each key individually and transform as needed but I am having issues applying the same across all other keys in the object.

Is there a way to provide an array of paths like so:
path: ["1", "2"]

Or is there another way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant