com.github.fge.jsonpatch
Class JsonPatchFactory
java.lang.Object
com.github.fge.jsonpatch.JsonPatchFactory
public class JsonPatchFactory
- extends Object
A JsonPatchFactory is able to create a JsonPatch from a JsonNode.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonPatchFactory
public JsonPatchFactory(ObjectMapper mapper)
getReader
public ObjectReader getReader()
getWriter
public ObjectWriter getWriter()
fromJson
public JsonPatch fromJson(JsonNode node)
throws IOException
- Builds a JSON Patch out of a JSON representation with support for an extended set of JSON patch operations
- Parameters:
node
- the JSON representation of the generated JSON Patch
- Returns:
- a JSON Patch
- Throws:
IOException
- input is not a valid JSON patch
NullPointerException
- input is null