java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>, java.util.NavigableMap<java.lang.String,java.lang.Object>, java.util.SortedMap<java.lang.String,java.lang.Object>public static class MiniJSON.JSONObject
extends java.util.TreeMap<java.lang.String,java.lang.Object>
| Constructor | Description | 
|---|---|
| JSONObject() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static void | appendJSONValue(java.lang.StringBuilder value,
               java.lang.Object obj) | Correctly appends the given thing to the given stringbuffer which
 is assumed to be in the middle of a JSON obect definition, right
 after the key and the colon: | 
| MiniJSON.JSONObject | copyOf() | |
| java.lang.Object[] | getCheckedArray(java.lang.String key) | Returns a JSON Array mapped in this object by the given key. | 
| java.lang.Boolean | getCheckedBoolean(java.lang.String key) | Returns a Boolean mapped in this object by the given key. | 
| java.lang.Double | getCheckedDouble(java.lang.String key) | Returns a Double mapped in this object by the given key. | 
| MiniJSON.JSONObject | getCheckedJSONObject(java.lang.String key) | Returns a JSONObject mapped in THIS object by the given key. | 
| java.lang.Long | getCheckedLong(java.lang.String key) | Returns a Long mapped in this object by the given key. | 
| double | getCheckedNumber(java.lang.String key) | Returns a numeric value mapped in this object by the given key. | 
| java.lang.String | getCheckedString(java.lang.String key) | Returns a String mapped in this object by the given key. | 
| boolean | isCheckedNULL(java.lang.String key) | Checks this object for the given key, and checks if it
 is an official NULL or not. | 
| java.lang.Object | jsonDeepCopy(java.lang.Object obj) | |
| void | putString(java.lang.String key,
         java.lang.String value) | |
| java.lang.String | toString() | Returns a full JSON document representation of this JSON object | 
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removefinalize, getClass, notify, notifyAll, wait, wait, waitceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuespublic MiniJSON.JSONObject getCheckedJSONObject(java.lang.String key) throws MiniJSON.MJSONException
key - the key of the objectMiniJSON.MJSONException - a missing key, or not a JSON Objectpublic java.lang.Object[] getCheckedArray(java.lang.String key)
                                   throws MiniJSON.MJSONException
key - the key of the ArrayMiniJSON.MJSONException - a missing key, or not a JSON Arraypublic java.lang.String getCheckedString(java.lang.String key)
                                  throws MiniJSON.MJSONException
key - the key of the StringMiniJSON.MJSONException - a missing key, or not a Stringpublic java.lang.Long getCheckedLong(java.lang.String key)
                              throws MiniJSON.MJSONException
key - the key of the LongMiniJSON.MJSONException - a missing key, or not a Longpublic java.lang.Double getCheckedDouble(java.lang.String key)
                                  throws MiniJSON.MJSONException
key - the key of the LongMiniJSON.MJSONException - a missing key, or not a Doublepublic java.lang.Boolean getCheckedBoolean(java.lang.String key)
                                    throws MiniJSON.MJSONException
key - the key of the LongMiniJSON.MJSONException - a missing key, or not a Booleanpublic double getCheckedNumber(java.lang.String key)
                        throws MiniJSON.MJSONException
key - the key of the LongMiniJSON.MJSONException - a missing key, or not a numeric valuepublic boolean isCheckedNULL(java.lang.String key)
                      throws MiniJSON.MJSONException
key - the key of the possible nullMiniJSON.MJSONException - the key was missingpublic static void appendJSONValue(java.lang.StringBuilder value,
                                   java.lang.Object obj)
value - the StringBuffer to append a value toobj - the value to append -- a string, null, array, or numberpublic java.lang.String toString()
toString in class java.util.AbstractMap<java.lang.String,java.lang.Object>public java.lang.Object jsonDeepCopy(java.lang.Object obj)
public MiniJSON.JSONObject copyOf()
public void putString(java.lang.String key,
                      java.lang.String value)