org.json.simple
Class JSONObject
java.lang.Object
java.util.AbstractMap<S,T>
org.gudy.azureus2.core3.util.LightHashMap<String,Object>
org.json.simple.JSONObject
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
public class JSONObject
- extends LightHashMap<String,Object>
- Author:
- FangYidong
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class org.gudy.azureus2.core3.util.LightHashMap |
capacity, clear, clone, compactify, containsKey, containsValue, entrySet, get, keySet, main, put, putAll, remove, values |
JSONObject
public JSONObject()
JSONObject
public JSONObject(int initialCapacity,
float loadFactor)
JSONObject
public JSONObject(int initialCapacity)
JSONObject
public JSONObject(Map<String,Object> arg0)
toString
public String toString()
- Overrides:
toString
in class AbstractMap<String,Object>
toString
public void toString(StringBuilder sb)
toString
public static String toString(String key,
Object value)
toString
public static void toString(StringBuilder sb,
String key,
Object value)
escape
public static String escape(String s)
- " => \" , \ => \\
- Parameters:
s
-
- Returns:
escape
public static void escape(StringBuilder sb,
String s)