-
Notifications
You must be signed in to change notification settings - Fork 54
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
Create an array from existing keys #77
Comments
First case is definitely possible with latest version using
Note in this case I used key to append to array, could also specify the indices explicitly. I believe you can do the same with a top level array by just removing |
I am afraid in version 3, i.e. v3 I am getting the following output:
Are you talking about a version later than v3 ? |
Ah interesting! There's a bug there with the Meanwhile you can just specify the array index and it will work.
Also it behaves weirdly right now if you try to do a top level array, but there's a workaround with the
Gonna close this since I just tested it, please do re-open though if it seems to not be working for you. Thanks! |
Hi,
I am wondering if there's a way to create an array from existing keys using existing transform functions only ? something like
converting the following JSON
to something like:
Another followup would be, Is it possible to create an array at top level ? for example, converting the above JSON to something like:
["field1", "field2", "field3"]
Thanks
The text was updated successfully, but these errors were encountered: