Class JsonUtils


  • public final class JsonUtils
    extends java.lang.Object
    Since:
    6.0.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.github.openjson.JSONArray asArray​(java.util.Map<java.lang.String,​java.lang.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 com.github.openjson.JSONArray asArray​(java.util.Map<java.lang.String,​java.lang.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