Class ByteArrayToJsonNodeConverter

java.lang.Object
org.axonframework.conversion.json.ByteArrayToJsonNodeConverter
All Implemented Interfaces:
ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>

public class ByteArrayToJsonNodeConverter extends Object implements ContentTypeConverter<byte[],com.fasterxml.jackson.databind.JsonNode>
A ContentTypeConverter implementation that converts byte[] containing UTF8 encoded JSON string to a JsonNode.
Since:
2.2.0
Author:
Allard Buijze
  • Constructor Details

    • ByteArrayToJsonNodeConverter

      public ByteArrayToJsonNodeConverter(@Nonnull com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Initialize the Converter, using given objectMapper to parse the binary contents
      Parameters:
      objectMapper - the Jackson ObjectMapper to parse the byte array with
  • Method Details