Class JacksonJsonToObjectConverter

java.lang.Object
org.springframework.geode.data.json.converter.support.JacksonJsonToObjectConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,Object>, JsonToObjectConverter

public class JacksonJsonToObjectConverter extends Object implements JsonToObjectConverter
JsonToObjectConverter implementation using Jackson to convert JSON to an Object (POJO).
Since:
1.3.0
See Also:
  • Field Details

  • Constructor Details

    • JacksonJsonToObjectConverter

      public JacksonJsonToObjectConverter()
  • Method Details

    • getObjectMapper

      @NonNull protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      Returns a reference to the configured Jackson ObjectMapper used by this Converter to convert JSON into an Object (POJO).
      Returns:
      a reference to the configured Jackson ObjectMapper.
    • convert

      @Nullable public Object convert(@Nullable String json)
      Converts from JSON to an Object (POJO) using Jackson's ObjectMapper.
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<String,Object>
      Parameters:
      json - String containing JSON to convert.
      Returns:
      an Object (POJO) converted from the given JSON.
      See Also: