Package org.apache.wicket.ajax.json
Class JsonUtils
- java.lang.Object
-
- org.apache.wicket.ajax.json.JsonUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.github.openjson.JSONArray
asArray(Map<String,Object> map)
Converts a Map to JSONArray suitable for jQuery#param().
-
-
-
Method Detail
-
asArray
public static com.github.openjson.JSONArray asArray(Map<String,Object> map) throws com.github.openjson.JSONException
Converts a Map to JSONArray suitable for jQuery#param().- Parameters:
map
- the map with key/value(s)- Returns:
- a JSONArray that contains JSONObject's with name/value pairs
- Throws:
com.github.openjson.JSONException
-
-