public static JsonPatch fromJson ( final JsonNode node ) throws IOException { requireNonNull ( node , "node" ) ; try { return Jackson . treeToValue ( node , JsonPatch . class ) ; } catch ( JsonMappingException e ) { throw new JsonPatchException ( "invalid JSON patch" , e ) ; } }
Static factory method to build a JSON Patch out of a JSON representation .