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 Details

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