class JsonGenerator {

    public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException {
        if (map == null) {
            return new NullValue();
        }
        return createJsonValue(map, MAP);
    }

}