@Test public void convertsNullMapToJson() throws Exception { JsonValue jsonValue = JsonGenerator.createJsonObjectFromMap(null); assertTrue(jsonValue.isNull()); }
public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException { if (map == null) { return new NullValue(); } return createJsonValue(map, MAP); }
JsonGenerator { public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException { if (map == null) { return new NullValue(); } return createJsonValue(map, MAP); } }
JsonGenerator { public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException { if (map == null) { return new NullValue(); } return createJsonValue(map, MAP); }  }
JsonGenerator { public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException { if (map == null) { return new NullValue(); } return createJsonValue(map, MAP); }  static JsonValue createJsonArray(Collection<?> collection); static JsonValue createJsonArray(Object array); static JsonValue createJsonObjectFromMap(Map<String, ?> map); static JsonValue createJsonObject(Object object); }
JsonGenerator { public static JsonValue createJsonObjectFromMap(Map<String, ?> map) throws JsonException { if (map == null) { return new NullValue(); } return createJsonValue(map, MAP); }  static JsonValue createJsonArray(Collection<?> collection); static JsonValue createJsonArray(Object array); static JsonValue createJsonObjectFromMap(Map<String, ?> map); static JsonValue createJsonObject(Object object);  }