Class JsonPatchHelper
- java.lang.Object
-
- de.xima.fc.gui.designer.form.utils.JsonPatchHelper
-
public final class JsonPatchHelper extends Object
Helper for working with JSON patches according to as specified by https://tools.ietf.org/html/rfc6902.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
patch(List<?> json, Iterable<IncrementalPersistPatch> patches)
Applies one or more JSON patches to the given JSON array.static void
patch(Map<String,?> json, Iterable<IncrementalPersistPatch> patches)
Applies one or more JSON patches to the given JSON object.
-
-
-
Method Detail
-
patch
public static void patch(Map<String,?> json, Iterable<IncrementalPersistPatch> patches)
Applies one or more JSON patches to the given JSON object. This will modify the given JSON.- Parameters:
json
- JSON object to patch.patches
- Patches to apply.
-
patch
public static void patch(List<?> json, Iterable<IncrementalPersistPatch> patches)
Applies one or more JSON patches to the given JSON array. This will modify the given JSON.- Parameters:
json
- JSON array to patch.patches
- Patches to apply.
-
-