Skip to content

JSON Converter#

The JSON Converter allows to convert a configuration value into a JsonObject or JsonArray.

The following dependency is required in the classpath to use the JSON Converter:


JsonObject or JsonArray are automatically converted from their String value.

@ConfigProperty(name = "someJsonArray")
private JsonArray someValue;

@ConfigProperty(name = "someJsonObject")
private JsonObject someValue;
someJsonObject={"foo": "bar", "count":100}

The value of the configuration properties must be valid JSON, or a JsonParsingException is thrown.