Interface ObjectArrayToJsonConverter

All Superinterfaces:
org.springframework.core.convert.converter.Converter<Iterable<?>,String>
All Known Implementing Classes:
AbstractObjectArrayToJsonConverter
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ObjectArrayToJsonConverter extends org.springframework.core.convert.converter.Converter<Iterable<?>,String>
A Spring Converter interface extension defining a contract to convert an Iterable or an array of Objects into JSON.
Since:
1.3.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    convert(Object... array)
    Converts the given array of Objects into JSON.

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

    andThen, convert
  • Method Details

    • convert

      @NonNull default String convert(@Nullable Object... array)
      Converts the given array of Objects into JSON.
      Parameters:
      array - array of Objects to convert into JSON.
      Returns:
      JSON generated from the given array of Objects.
      See Also:
      • Converter.convert(Object)