org.das2.util.JsonUtil

Useful JSON utilities.

JsonUtil( )


jsonToList

jsonToList( JSONArray array ) → java.util.List

convert JSONArray to List<Object>

Parameters

array - a JSONArray

Returns:

List

[search for examples] [view on GitHub] [view on old javadoc] [view source]


jsonToMap

jsonToMap( JSONObject jsonobj ) → java.util.Map

convert JSONObject to Map<String,Object>

Parameters

jsonobj - a JSONObject

Returns:

List

[search for examples] [view on GitHub] [view on old javadoc] [view source]