public class JSONObject extends java.util.LinkedHashMap<java.lang.Object,java.lang.Object> implements java.util.Map<java.lang.Object,java.lang.Object>, JSONAware
Constructor and Description |
---|
JSONObject() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJSONString()
Encodes this object to a JSON string.
|
static java.lang.String |
toJSONString(java.util.Map map)
Convert (aka., encode) a map to JSON text.
|
java.lang.String |
toString()
Encodes this object to a JSON string.
|
static java.lang.String |
toString(java.lang.String key,
java.lang.Object value) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public static java.lang.String toJSONString(java.util.Map map)
map
- JSONValue.toJSONString(Object)
public java.lang.String toJSONString()
toString()
.toJSONString
in interface JSONAware
public java.lang.String toString()
toJSONString()
.toString
in class java.util.AbstractMap<java.lang.Object,java.lang.Object>
public static java.lang.String toString(java.lang.String key, java.lang.Object value)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.