code: 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);
          }
      }
docs: Static factory method to build a JSON Patch out of a JSON representation.
  
  @param node the JSON representation of the generated JSON Patch
  @return a JSON Patch
  @throws IOException input is not a valid JSON patch
  @throws NullPointerException input is null