ParserUtility.mapToJsonElement(Map<String, Object> map) 方法
定义
Helper to convert a provided map in to a JsonElement, including sub-maps.
public static JsonElement mapToJsonElement(Map<String, Object> map)
参数
- map
- Map<String, Object>
is the map to serialize
返回
JsonElement
a JsonElement that represents the content of the map.
例外
IllegalArgumentException
if the provided map is null.