org.das2.util.JsonUtil

Useful JSON utilities.

JsonUtil( )


jsonToList

jsonToList( JSONArray array ) → 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 ) → 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]