Class JsonUtils

    • 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