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

How to work with parent object and transform values #688

Open
mwpowellhtx opened this issue Apr 26, 2024 · 0 comments
Open

How to work with parent object and transform values #688

mwpowellhtx opened this issue Apr 26, 2024 · 0 comments

Comments

@mwpowellhtx
Copy link

I have a JSON in the following structure, how would we express this transformation. Note that we want the result to be the same shape as the input.

{
  "99": { "Price": 999 }
  , ...
}

We have the JSON object, key value associative pairs, the object on the RHS has a "Price", can have other kvp as well, all should remain in tact. The only thing we want to do is transform the Price accordingly.

How might we go about doing that with the JSON-aytah ?

Note, I am no stranger to data shapes, transformations, etc; so high level guidance. If it is even possible with JSON-ata.

Thank! Cheers. 🍻

@mwpowellhtx mwpowellhtx changed the title How do work with a parent object and transform its values How to work with a parent object and transform its values Apr 26, 2024
@mwpowellhtx mwpowellhtx changed the title How to work with a parent object and transform its values How to work with parent object and transform values Apr 26, 2024
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