Package org.jolokia.json
Class JSONObject
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,,Object> JSONStructure
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSerialize given JSON structure to string.toString()voidwriteJSONString(Writer writer) Serialize this JSON structure to aWriter.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode
-
Constructor Details
-
JSONObject
public JSONObject()
-
-
Method Details
-
toJSONString
Description copied from interface:JSONStructureSerialize given JSON structure to string. Can be used for debugging or small JSON data, but streaming the JSON intoWriteris preferred.- Specified by:
toJSONStringin interfaceJSONStructure- Returns:
-
writeJSONString
Description copied from interface:JSONStructureSerialize this JSON structure to aWriter.- Specified by:
writeJSONStringin interfaceJSONStructure- Throws:
IOException
-
toString
- Overrides:
toStringin classAbstractMap<String,Object>
-