Package jsonvalues

Class Patch


  • public final class Patch
    extends Object
    Encapsulates a RFC 6902 implementation. Json patch operations can be applied to Jsons using the method Json.patch(JsArray).
    • Field Detail

      • FROM_FIELD

        public static final String FROM_FIELD
        field which contains the source location in MOVE and COPY operations
        See Also:
        Constant Field Values
      • PATH_FIELD

        public static final String PATH_FIELD
        field which contains the target location of an operation
        See Also:
        Constant Field Values
      • VALUE_FIELD

        public static final String VALUE_FIELD
        field which contains the Json element to be used by the operation
        See Also:
        Constant Field Values
    • Method Detail

      • ops

        public static Patch.Builder ops()
        return a new patch-operation builder
        Returns:
        a new patch-operation builder