Class JsonPatchHelper

    • 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.