Class JsonUtils

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

public final class JsonUtils extends Object
Since:
6.0.0
  • Method Details

    • 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