Class JsonPatchHelper
java.lang.Object
de.xima.fc.gui.designer.form.utils.JsonPatchHelper
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
Modifier and TypeMethodDescriptionstatic 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 Details
-
patch
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
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.
-