{"id":22190009,"url":"https://github.com/elitemastereric/jsonpatch","last_synced_at":"2026-01-05T07:52:57.040Z","repository":{"id":250244634,"uuid":"833907320","full_name":"EliteMasterEric/jsonpatch","owner":"EliteMasterEric","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-26T02:45:24.000Z","size":149,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T00:46:28.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haxe","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/EliteMasterEric.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T02:44:17.000Z","updated_at":"2024-12-01T14:33:25.000Z","dependencies_parsed_at":"2024-07-26T04:07:39.872Z","dependency_job_id":null,"html_url":"https://github.com/EliteMasterEric/jsonpatch","commit_stats":null,"previous_names":["elitemastereric/jsonpatch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliteMasterEric%2Fjsonpatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliteMasterEric%2Fjsonpatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliteMasterEric%2Fjsonpatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliteMasterEric%2Fjsonpatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EliteMasterEric","download_url":"https://codeload.github.com/EliteMasterEric/jsonpatch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245346475,"owners_count":20600322,"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":[],"created_at":"2024-12-02T11:41:28.694Z","updated_at":"2026-01-05T07:52:57.036Z","avatar_url":"https://github.com/EliteMasterEric.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSONPatch\n\nA library for parsing and evaluating [JSONPatch](https://jsonpatch.com/) files on JSON data objects.\n\nIt deviates from the spec to add support for additional features, but seeks to otherwise be fully compatible with JSONPatch data that is compliant with [RFC6902](https://datatracker.ietf.org/doc/rfc6902/).\n\nAdditional features include:\n\n- The ability to test that a key exists by omitting `value` from the `test` operation.\n- The ability to invert a test by providing `\"inverse\": true` in the `test` operation.\n- The ability to provide a batch of JSONPatches to evaluate one at a time, gracefully skipping the patches containing a failed operation.\n- The ability to use JSONPath for the path argument, instead of only supporting JSONPointer values.\n\n## Example\n\n```haxe\nimport json.patch.JSONPatch;\n\nvar patch = [\n    {\"op\": \"add\", \"path\": \"/a/d\", \"value\": \"e\"}\n];\nvar data = {\"a\": {\"b\": \"c\"}}\n\n// {\"a\": {\"b\": \"c\", \"d\": \"e\"}}\ntrace(JSONPatch.applyPatches(patch, data));\n\n// JSONPath is also supported.\nvar patch = [\n    {\"op\": \"replace\", \"path\": \"$..c\", \"value\": 3}\n];\nvar data = {\"a\": {\"c\": 11}, \"b\": {\"c\": 12}};\n\n// {\"a\": {\"c\": 3 }, \"b\": { \"c\": 3 }}}\ntrace(JSONPatch.applyPatches(patch, data));\n```\n\n## Licensing\n\nJSONPatch is made available under an open source MIT License. You can read more at [LICENSE](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felitemastereric%2Fjsonpatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felitemastereric%2Fjsonpatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felitemastereric%2Fjsonpatch/lists"}