Package io.micronaut.json
Interface JsonConfiguration
- All Known Implementing Classes:
JacksonConfiguration
Base interface for application-level json configuration.
- Since:
- 3.1
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Whether _embedded.errors should always be serialized as list.
-
Method Details
-
isAlwaysSerializeErrorsAsList
boolean isAlwaysSerializeErrorsAsList()Whether _embedded.errors should always be serialized as list. If set to false, _embedded.errors with 1 element will be serialized as an object.- Returns:
- True if _embedded.errors should always be serialized as list.
-
getArraySizeThreshold
int getArraySizeThreshold()- Returns:
- The array size threshold to use
-