org.json.simple
Class JSONObject

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by org.json.simple.JSONObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class JSONObject
extends java.util.HashMap

Author:
FangYidong
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
JSONObject()
           
 
Method Summary
static java.lang.String escape(java.lang.String s)
          " => \" , \ => \\
 java.lang.String toString()
           
static java.lang.String toString(java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JSONObject

public JSONObject()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractMap

toString

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

escape

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

Parameters:
s -
Returns: