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

Allow setting arbitrarily nested (inside hashes) values in a Change #2

Open
alechenninger opened this issue Dec 7, 2015 · 1 comment

Comments

@alechenninger
Copy link
Owner

...in such a way that ignores the rest of the hash and only changes or adds the key in that hash.

@alechenninger
Copy link
Owner Author

Can use JsonPath I think: https://github.com/jayway/JsonPath

Supporting definite paths would be simple I think. Indefinite paths not so much, because the actual paths that match are a function of the source (and so different for each source in hierarchy). I think we'd have to match every path in target and descendents and then put all of those at target, removing from descendant (taking into account whether key is a merge key or not).

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

No branches or pull requests

1 participant