public class JSONObject extends JSON implements Map<String,Object>, Cloneable, Serializable
DEFAULT_GENERATE_FEATURE, DEFAULT_PARSER_FEATURE, DEFAULT_TYPE_KEY, defaultLocale, defaultTimeZone, DEFFAULT_DATE_FORMAT, VERSION| Constructor and Description |
|---|
JSONObject() |
JSONObject(boolean ordered) |
JSONObject(int initialCapacity) |
JSONObject(int initialCapacity,
boolean ordered) |
JSONObject(Map<String,Object> map) |
isValid, isValidArray, parse, parse, parse, parseArray, parseArray, parseArray, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, toJSON, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONStringWithDateFormat, writeJSONString, writeJSONStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic JSONObject()
public JSONObject(boolean ordered)
public JSONObject(int initialCapacity)
public JSONObject(int initialCapacity,
boolean ordered)
public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public JSONObject getJSONObject(String key)
public boolean getBooleanValue(String key)
public byte getByteValue(String key)
public short getShortValue(String key)
public int getIntValue(String key)
public long getLongValue(String key)
public float getFloatValue(String key)
public double getDoubleValue(String key)
public BigDecimal getBigDecimal(String key)
public BigInteger getBigInteger(String key)
public JSONObject fluentPut(String key, Object value)
public JSONObject fluentPutAll(Map<? extends String,? extends Object> m)
public JSONObject fluentClear()
public JSONObject fluentRemove(Object key)
public boolean equals(Object obj)
public int hashCode()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
Throwablepublic <T> T toJavaObject(Type type)
public <T> T toJavaObject(Class<T> clazz)
public <T> T toJavaObject(Class<T> clazz, ParserConfig config, int features)
public String toJSONString()
public String toString(SerializerFeature... features)
Copyright © 2022 Alibaba Group. All rights reserved.