Class JsonPatch


  • public class JsonPatch
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JsonPatch.Op  
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonPatch()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escapeNode​(java.lang.String node)
      Returns an escaped JSON path node for use in a JSON pointer as defined in RFC6901
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonPatch

        public JsonPatch()
    • Method Detail

      • escapeNode

        public static java.lang.String escapeNode​(java.lang.String node)
        Returns an escaped JSON path node for use in a JSON pointer as defined in RFC6901

        ~ is replaced by ~0 / is replaced by ~1

        Parameters:
        node - a node to be used as part of a JSON pointer
        Returns:
        the node with escaped characters
        See Also:
        RFC6901, section 3