{"id":26158018,"url":"https://github.com/jregistr/json-patch-cli","last_synced_at":"2025-09-10T08:06:14.732Z","repository":{"id":220268366,"uuid":"751196824","full_name":"jregistr/json-patch-cli","owner":"jregistr","description":"Super simple CLI tool to apply a JSON patch input to a JSON document.","archived":false,"fork":false,"pushed_at":"2024-02-01T05:54:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T06:54:04.678Z","etag":null,"topics":["cli","json","json-patch","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jregistr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-02-01T05:50:13.000Z","updated_at":"2024-02-01T05:51:25.000Z","dependencies_parsed_at":"2024-02-01T06:48:06.017Z","dependency_job_id":null,"html_url":"https://github.com/jregistr/json-patch-cli","commit_stats":null,"previous_names":["jregistr/json-patch-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jregistr%2Fjson-patch-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jregistr%2Fjson-patch-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jregistr%2Fjson-patch-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jregistr%2Fjson-patch-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jregistr","download_url":"https://codeload.github.com/jregistr/json-patch-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243015247,"owners_count":20222056,"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":["cli","json","json-patch","rust"],"created_at":"2025-03-11T10:30:54.425Z","updated_at":"2025-03-11T10:32:14.301Z","avatar_url":"https://github.com/jregistr.png","language":"Rust","readme":"## JSON Patch CLI\n\nThis is a simple CLI tool to apply a [JSON Patch](https://jsonpatch.com/) to a given JSON document based on the [idubrov/json-patch](https://github.com/idubrov/json-patch) JSON patch implementation.\n\n## Example Usage\n1. Pipe doc to json patch cli:\n    ```shell\n    echo '[\n        { \"name\": \"Andrew\"},\n        {\"name\": \"Maxim\"}\n    ]' | json-patch-cli '[{ \"op\": \"add\", \"path\": \"/0/happy\", \"value\": true }]'\n    # Outputs\n    [{\"happy\":true,\"name\":\"Andrew\"},{\"name\":\"Maxim\"}]\n    ```\n1. Provide both doc and patch as arguments\n    ```shell\n     json-patch-cli '[{ \"name\": \"Andrew\" },{ \"name\": \"Maxim\" }]' '[{ \"op\": \"add\", \"path\": \"/0/happy\", \"value\": true }]' | jq\n    ```\n\n1. Reading a file for the JSON doc or patch input\n    ```shell\n    json-patch-cli doc.json '[{ \"op\": \"add\", \"path\": \"/0/happy\", \"value\": true }]' | jq\n    ```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjregistr%2Fjson-patch-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjregistr%2Fjson-patch-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjregistr%2Fjson-patch-cli/lists"}