org.apache.wicket.ajax.json
Class JsonUtils

java.lang.Object
  extended by org.apache.wicket.ajax.json.JsonUtils

public final class JsonUtils
extends Object

Since:
6.0.0

Method Summary
static JSONArray asArray(Map<String,Object> map)
          Converts a Map to JSONArray suitable for jQuery#param().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

asArray

public static JSONArray asArray(Map<String,Object> map)
                         throws 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:
JSONException


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.