{"id":17810480,"url":"https://github.com/mattidragon/jsonpatcher","last_synced_at":"2025-03-17T20:30:31.602Z","repository":{"id":206846394,"uuid":"711956765","full_name":"MattiDragon/JsonPatcher","owner":"MattiDragon","description":"A fabricmc mod for patching json files with a custom DSL","archived":false,"fork":false,"pushed_at":"2025-03-14T09:14:29.000Z","size":441,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"1.21.4","last_synced_at":"2025-03-14T10:24:52.883Z","etag":null,"topics":["fabricmc","programming-language"],"latest_commit_sha":null,"homepage":"","language":"Java","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/MattiDragon.png","metadata":{"files":{"readme":"README.md","changelog":"changelog/1.1.1+1.21.4.md","contributing":null,"funding":null,"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}},"created_at":"2023-10-30T14:09:36.000Z","updated_at":"2025-03-11T23:29:25.000Z","dependencies_parsed_at":"2023-11-25T11:31:49.024Z","dependency_job_id":"2e5352ce-20c1-485a-8422-74debd656a63","html_url":"https://github.com/MattiDragon/JsonPatcher","commit_stats":null,"previous_names":["mattidragon/jsonpatcher"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattiDragon%2FJsonPatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattiDragon%2FJsonPatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattiDragon%2FJsonPatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattiDragon%2FJsonPatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MattiDragon","download_url":"https://codeload.github.com/MattiDragon/JsonPatcher/tar.gz/refs/heads/1.21.4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878483,"owners_count":20362433,"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":["fabricmc","programming-language"],"created_at":"2024-10-27T15:35:43.374Z","updated_at":"2025-03-17T20:30:31.223Z","avatar_url":"https://github.com/MattiDragon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JsonPatcher\n[![Badge showing the amount of downloads on modrinth](https://img.shields.io/badge/dynamic/json?color=2d2d2d\u0026colorA=5da545\u0026label=\u0026suffix=%20downloads%20\u0026query=downloads\u0026url=https://api.modrinth.com/v2/project/qlXnlZLG\u0026style=flat\u0026logo=modrinth\u0026logoColor=2d2d2d)](https://modrinth.com/mod/jsonpatcher)\n[![Badge showing the amount of downloads on curseforge](https://img.shields.io/badge/dynamic/json?query=value\u0026url=https://img.shields.io/curseforge/dt/936929.json\u0026label=\u0026logo=curseforge\u0026color=2d2d2d\u0026style=flat\u0026labelColor=F16436\u0026logoColor=2d2d2d\u0026suffix=%20downloads)](https://www.curseforge.com/minecraft/mc-mods/jsonpatcher)\n[![Badge linking to issues on github](https://img.shields.io/badge/dynamic/json?query=value\u0026url=https://img.shields.io/github/issues-raw/mattidragon/jsonpatcher.json\u0026label=\u0026logo=github\u0026color=2d2d2d\u0026style=flat\u0026labelColor=6e5494\u0026logoColor=2d2d2d\u0026suffix=%20issues)](https://github.com/MattiDragon/jsonpatcher/issues)\n[![Badge linking to support on discord](https://img.shields.io/discord/760524772189798431?label=\u0026logo=discord\u0026color=2d2d2d\u0026style=flat\u0026labelColor=5865f2\u0026logoColor=2d2d2d)](https://discord.gg/26T5KK2PBv)\n\nJsonPatcher is a mod that allows you to modify json files in datapacks and resourcepacks without overriding them.\nThis is primarily useful for mod developers and pack makers, but can also be used by players to modify their own packs.\n\n## Usage\n\u003cdetails\u003e\n\u003csummary\u003eGradle dependency (for mod developers)\u003c/summary\u003e\n\nYou can add jsonpatcher to your mods buildscript like this:\n```groovy\nrepositories {\n    maven {\n        url 'https://jitpack.io'\n    }\n}\n\ndependencies {\n    modImplementation(include(\"com.github.mattidragon:jsonpatcher:${jsonpatcher_version}\"))\n}\n```\n\n\u003c/details\u003e\n\nTo begin using jsonpatcher, just create a file with the `.jsonpatch` extension \nin the `data/\u003cnamespace\u003e/jsonpatcher` directory of your datapack \nor `assets/\u003cnamespace\u003e/jsonpatcher` directory of your resourcepack.\n\nYou'll want to begin your patch with a `@version` meta tag like this. \nThis will let jsonpatcher know that your patch will work with this version. \nIn the future you may be able to select a version in more ways.\n```\n@version \"1\"\n```\n\nNext you'll want to select the files you want to patch. \nThis is done with the `@target` meta tag. All meta tags follow a json format.\nYou can either select a single file with a string, use an object for broader selections, \nor use an array for multiple selections. If any selector in the array matches, the patch will apply.\n\nNow you can begin modifying the target file. The patch files use a c-like syntax. \nYou can access the target files contents with `$`. It can be used like a variable,\nor you can put the property you want to access directly after it.\n\nFor more info on the language, see [the wiki](https://github.com/MattiDragon/JsonPatch/wiki).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattidragon%2Fjsonpatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattidragon%2Fjsonpatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattidragon%2Fjsonpatcher/lists"}