Interface JsonToObjectConverter

All Superinterfaces:
org.springframework.core.convert.converter.Converter<String,Object>
All Known Implementing Classes:
JacksonJsonToObjectConverter

public interface JsonToObjectConverter extends org.springframework.core.convert.converter.Converter<String,Object>
Spring Converter interface extension defining a contract to convert from JSON to an Object (POJO).
Since:
1.3.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    convert(byte[] json)
    Converts the array of bytes containing JSON into an Object (POJO).

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen, convert
  • Method Details

    • convert

      @NonNull default Object convert(@NonNull byte[] json)
      Converts the array of bytes containing JSON into an Object (POJO).
      Parameters:
      json - array of bytes containing JSON to convert into an Object (POJO); must not be null.
      Returns:
      an Object (POJO) converted from the array of bytes containing JSON.
      See Also:
      • Converter.convert(Object)