Class JSONObject<K,​V>

    • Constructor Detail

      • JSONObject

        public JSONObject()
      • JSONObject

        public JSONObject​(int initialCapacity,
                          float loadFactor)
      • JSONObject

        public JSONObject​(int initialCapacity)
      • JSONObject

        public JSONObject​(Map<? extends K,​? extends V> m)
      • JSONObject

        public JSONObject​(int initialCapacity,
                          float loadFactor,
                          boolean accessOrder)
      • JSONObject

        public JSONObject​(K key,
                          V value)
    • Method Detail

      • toJSONString

        public static String toJSONString​(Map map)
        Convert (aka., encode) a map to JSON text. The result is a JSON object. If this map is also a JSONAware, JSONAware specific behaviors will be omitted at this top level.
        Parameters:
        map -
        Returns:
        JSON text, or "null" if map is null.
        See Also:
        JSONValue.toJSONString(Object)