A library for reading, writing, and applying Json patches.
It is a completely specification-compliant implementation, although it does include its own extensions.
This library does not come with documentation on the patches themselves, however the Minecraft mod has documentation on this subject. For documentation on using the library, there is fairly extensive Javadocs in the source code, or one can look at the Minecraft mod for examples.
This project is mainly intended to be an API for other projects to use. However, there is a Minecraft mod that implements patching functionality there.
There is no maven hosting this library (yet). Currently, your best option is using JitPack:
repositories {
maven {
url = 'https://jitpack.io'
}
}
dependencies {
implementation 'com.github.EnderTurret:Patched:<version>'
}Patched includes some optional extensions to the original specification, which are as follows:
- Test Extensions (
testExtensions) - Patched Extensions (
patchedExtensions)- "Custom" test patch type
findoperationincludeoperationpasteoperation- Absolute paths (intended for
find) - Json path placeholders (intended for
find)