Package io.micronaut.json
Interface JsonConfiguration
-
@Internal public interface JsonConfiguration
Base interface for application-level json configuration.- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getArraySizeThreshold()
boolean
isAlwaysSerializeErrorsAsList()
Whether _embedded.errors should always be serialized as list.
-
-
-
Method Detail
-
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
-
-