Class JsonPatchPatchConverter

java.lang.Object
org.springframework.data.rest.webmvc.json.patch.JsonPatchPatchConverter
All Implemented Interfaces:
PatchConverter<com.fasterxml.jackson.databind.JsonNode>

public class JsonPatchPatchConverter extends Object implements PatchConverter<com.fasterxml.jackson.databind.JsonNode>
Convert JsonNodes containing JSON Patch to/from Patch objects.
Author:
Craig Walls, Oliver Gierke, Mathias Düsterhöft, Oliver Trosien
  • Constructor Details

    • JsonPatchPatchConverter

      public JsonPatchPatchConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, BindContext context)
  • Method Details

    • convert

      public Patch convert(com.fasterxml.jackson.databind.JsonNode jsonNode)
      Constructs a Patch object given a JsonNode.
      Specified by:
      convert in interface PatchConverter<com.fasterxml.jackson.databind.JsonNode>
      Parameters:
      jsonNode - a JsonNode containing the JSON Patch
      Returns:
      a Patch