org.json.simple
Class JSONObject

java.lang.Object
  extended by java.util.AbstractMap<S,T>
      extended by org.gudy.azureus2.core3.util.LightHashMap<java.lang.String,java.lang.Object>
          extended by org.json.simple.JSONObject
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class JSONObject
extends LightHashMap<java.lang.String,java.lang.Object>

Author:
FangYidong

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
JSONObject()
           
JSONObject(int initialCapacity)
           
JSONObject(int initialCapacity, float loadFactor)
           
JSONObject(java.util.Map<java.lang.String,java.lang.Object> arg0)
           
 
Method Summary
static java.lang.String escape(java.lang.String s)
          " => \" , \ => \\
static void escape(java.lang.StringBuilder sb, java.lang.String s)
           
 java.lang.String toString()
           
 void toString(java.lang.StringBuilder sb)
           
static void toString(java.lang.StringBuilder sb, java.lang.String key, java.lang.Object value)
           
static java.lang.String toString(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class org.gudy.azureus2.core3.util.LightHashMap
capacity, clear, clone, compactify, containsKey, containsValue, entrySet, get, keySet, main, put, putAll, remove, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, size
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONObject

public JSONObject()

JSONObject

public JSONObject(int initialCapacity,
                  float loadFactor)

JSONObject

public JSONObject(int initialCapacity)

JSONObject

public JSONObject(java.util.Map<java.lang.String,java.lang.Object> arg0)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>

toString

public void toString(java.lang.StringBuilder sb)

toString

public static java.lang.String toString(java.lang.String key,
                                        java.lang.Object value)

toString

public static void toString(java.lang.StringBuilder sb,
                            java.lang.String key,
                            java.lang.Object value)

escape

public static java.lang.String escape(java.lang.String s)
" => \" , \ => \\

Parameters:
s -
Returns:

escape

public static void escape(java.lang.StringBuilder sb,
                          java.lang.String s)