Class JsonMediaTypeCodec

java.lang.Object
io.micronaut.json.codec.MapperMediaTypeCodec
io.micronaut.json.codec.JsonMediaTypeCodec
All Implemented Interfaces:
MediaTypeCodec
Direct Known Subclasses:
JsonStreamMediaTypeCodec

@Named("json") @Singleton @Deprecated(forRemoval=true, since="4.7") public class JsonMediaTypeCodec extends MapperMediaTypeCodec
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced with message body writers / readers API
A MediaTypeCodec for JSON and Jackson.
Since:
1.0.0
Author:
Graeme Rocher
  • Field Details

    • CONFIGURATION_QUALIFIER

      public static final String CONFIGURATION_QUALIFIER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • JSON_ADDITIONAL_TYPES

      public static final List<MediaType> JSON_ADDITIONAL_TYPES
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • JsonMediaTypeCodec

      public JsonMediaTypeCodec(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      jsonMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
    • JsonMediaTypeCodec

      @Inject public JsonMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      jsonCodec - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
  • Method Details