Skip to content

update a Key wherever it present in given JSON #213

Answered by larsga
SavinayaShetty asked this question in Q&A
Discussion options

You must be logged in to vote

This is an interesting feature suggestion, but I'm afraid there is no support for anything like this at the moment.

However, you can get what you want by writing a recursive traversal function that does the update on every object in the input. You can see some useful examples here https://github.com/schibsted/jslt/blob/master/tutorial.md#function-declarations

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@larsga
Comment options

@akashvekariya
Comment options

@larsga
Comment options

@larsga
Comment options

@akashvekariya
Comment options

Answer selected by SavinayaShetty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants