public class JsonPatchPatchConverter extends Object implements PatchConverter<com.fasterxml.jackson.databind.JsonNode>
JsonNodes containing JSON Patch to/from Patch objects.| Constructor and Description |
|---|
JsonPatchPatchConverter() |
| Modifier and Type | Method and Description |
|---|---|
Patch |
convert(com.fasterxml.jackson.databind.JsonNode jsonNode)
Constructs a
Patch object given a JsonNode. |
com.fasterxml.jackson.databind.JsonNode |
convert(Patch patch)
Renders a
Patch as a JsonNode. |
public Patch convert(com.fasterxml.jackson.databind.JsonNode jsonNode)
Patch object given a JsonNode.convert in interface PatchConverter<com.fasterxml.jackson.databind.JsonNode>jsonNode - a JsonNode containing the JSON PatchPatchpublic com.fasterxml.jackson.databind.JsonNode convert(Patch patch)
Patch as a JsonNode.convert in interface PatchConverter<com.fasterxml.jackson.databind.JsonNode>patch - the patchJsonNode containing JSON Patch.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.