private String checkScalarType()

in src/main/java/org/apache/sling/feature/io/json/FeatureJSONReader.java [408:416]


    private String checkScalarType(final String key, final JsonValue value, boolean allowNull) throws IOException {
        if ( allowNull && value.getValueType() == ValueType.NULL ) {
            return null;
        }
        if ( value.getValueType() == ValueType.STRING || value.getValueType() == ValueType.NUMBER || value.getValueType() == ValueType.FALSE || value.getValueType() == ValueType.TRUE ) {
            return org.apache.felix.cm.json.io.Configurations.convertToObject(value).toString();
        }
        throw new IOException(this.exceptionPrefix.concat("Key ").concat(key).concat(" is not one of the allowed types string, number or boolean : ").concat(value.getValueType().name()));
    }