{"id":15889074,"url":"https://github.com/arshadkazmi42/json-nested-replace","last_synced_at":"2025-03-20T10:31:07.750Z","repository":{"id":44903164,"uuid":"168186476","full_name":"arshadkazmi42/json-nested-replace","owner":"arshadkazmi42","description":"Searches and replace values at every level of nested json","archived":false,"fork":false,"pushed_at":"2023-04-16T23:14:45.000Z","size":151,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T16:21:11.629Z","etag":null,"topics":["json","json-nested-replace","json-replace","json-search","json-update","search"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arshadkazmi42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"arshadkazmi42"}},"created_at":"2019-01-29T16:20:45.000Z","updated_at":"2022-12-23T15:48:17.000Z","dependencies_parsed_at":"2024-10-06T06:41:16.996Z","dependency_job_id":"9171d50f-96ac-40ba-91a9-f246c90e9b28","html_url":"https://github.com/arshadkazmi42/json-nested-replace","commit_stats":{"total_commits":30,"total_committers":5,"mean_commits":6.0,"dds":0.3666666666666667,"last_synced_commit":"b0604b751d1c608524be4d580fa94288f90c9738"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-nested-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-nested-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-nested-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arshadkazmi42%2Fjson-nested-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arshadkazmi42","download_url":"https://codeload.github.com/arshadkazmi42/json-nested-replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244594916,"owners_count":20478364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","json-nested-replace","json-replace","json-search","json-update","search"],"created_at":"2024-10-06T06:41:07.664Z","updated_at":"2025-03-20T10:31:07.455Z","avatar_url":"https://github.com/arshadkazmi42.png","language":"JavaScript","readme":"# json-nested-replace\n\n[![Build](https://github.com/arshadkazmi42/json-nested-replace/actions/workflows/nodejs.yml/badge.svg)](https://github.com/arshadkazmi42/json-nested-replace/actions/workflows/nodejs.yml)\n[![NPM Version](https://img.shields.io/npm/v/json-nested-replace.svg)](https://www.npmjs.com/package/json-nested-replace)\n[![NPM Downloads](https://img.shields.io/npm/dt/json-nested-replace.svg)](https://www.npmjs.com/package/json-nested-replace)\n[![Github Repo Size](https://img.shields.io/github/repo-size/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace)\n[![LICENSE](https://img.shields.io/npm/l/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace/blob/master/LICENSE)\n[![Contributors](https://img.shields.io/github/contributors/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/arshadkazmi42/json-nested-replace.svg)](https://github.com/arshadkazmi42/json-nested-replace/commits/master)\n\nSearches and replace values at every level of nested json\n\n\u003e Give us a :star: if you like our work :heart:\n\n## Install\n\n```\n$ npm install json-nested-replace\n```\n\n## Usage\n\n```javascript\nconst jnestedReplace = require('json-nested-replace');\n\nconst INPUT_JSON = {\n  'name': 'json-nested-replace',\n  'author': 'Arshad Kazmi',\n  'repository': {\n    'url': 'https://github.com/arshadkazmi42/json-nested-replace',\n    'language': 'js'\n  }\n};\n\nconst replacedJSONValue = jnestedReplace(INPUT_JSON, 'json-nested-replace', 'jnested-replace', ['url']);\nconsole.log(replacedJSONValue);\n// Output\n/** {\n *   'name': 'jnested-replace',\n *   'author': 'Arshad Kazmi',\n *   'repository': {\n *     'url': 'https://github.com/arshadkazmi42/json-nested-replace',\n *     'language': 'js'\n *   }\n * }\n **/\n\n```\n\n## Function Parameters\n\nFunction `jnestedReplace` takes following parameters respectively\n\n- `input`: Object/Array on which nested replace to apply\n- `searchValue`: Value which needs to be replaced in the JSON\n- `newValue`: New Value which needs to be added in place of searchValue\n- `skipKeys`: Optinal field, if any key needs to be skipped from this replacing\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/arshadkazmi42/json-nested-replace/issues/new)\n\nRead our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase\n\n## Contributors\n\nThank you to all the contributors who have helped us in making this project better :raised_hands:\n\n\u003ca href=\"https://github.com/arshadkazmi42\"\u003e\u003cimg src=\"https://github.com/arshadkazmi42.png\" width=\"30\" /\u003e\u003c/a\u003e\u003ca href=\"https://github.com/ayanujju\"\u003e\u003cimg src=\"https://github.com/ayanujju.png\" width=\"30\" /\u003e\u003c/a\u003e\n","funding_links":["https://github.com/sponsors/arshadkazmi42"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fjson-nested-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farshadkazmi42%2Fjson-nested-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farshadkazmi42%2Fjson-nested-replace/lists"}