class JsonConverter extends AbstractConfigurationConverter {

    JsonObject readJsonObjectFromConfig(final @NotNull PlexusConfiguration config,
                                        final ExpressionEvaluator evaluator)
            throws ComponentConfigurationException {
        final JsonObjectBuilder retValue = Json.createObjectBuilder();
        for (PlexusConfiguration child : config.getChildren()) {
            final String key = child.getName();
            retValue.add(key, convertChild(child, evaluator));
        }
        return retValue.build();
    }

}