Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3
Searches and replace values at every level of nested json
License
arshadkazmi42/json-nested-replace
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Searches and replace values at every level of nested json
Give us a ⭐ if you like our work ❤️
$ npm install json-nested-replaceconstjnestedReplace=require('json-nested-replace');constINPUT_JSON={'name':'json-nested-replace','author':'Arshad Kazmi','repository':{'url':'https://github.com/arshadkazmi42/json-nested-replace','language':'js'}};constreplacedJSONValue=jnestedReplace(INPUT_JSON,'json-nested-replace','jnested-replace',['url']);console.log(replacedJSONValue);// Output/** { * 'name': 'jnested-replace', * 'author': 'Arshad Kazmi', * 'repository': { * 'url': 'https://github.com/arshadkazmi42/json-nested-replace', * 'language': 'js' * } * } **/
FunctionjnestedReplace takes following parameters respectively
input: Object/Array on which nested replace to applysearchValue: Value which needs to be replaced in the JSONnewValue: New Value which needs to be added in place of searchValueskipKeys: Optinal field, if any key needs to be skipped from this replacing
Interested in contributing to this project?You can log any issues or suggestion related to this libraryhere
Read our contributingguide on getting started with contributing to the codebase
Thank you to all the contributors who have helped us in making this project better 🙌
About
Searches and replace values at every level of nested json
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.

