public class JSONObject extends JSON implements Map<String,Object>, Cloneable, Serializable, InvocationHandler
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) |
addMixInAnnotations, clearMixInAnnotations, getMixInAnnotations, handleResovleTask, isValid, isValidArray, isValidObject, parse, parse, parse, parse, parse, parse, parse, parse, parse, parseArray, parseArray, parseArray, parseArray, parseArray, parseArray, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, parseObject, removeMixInAnnotations, setDefaultTypeKey, toJavaObject, toJavaObject, toJavaObject, toJSON, toJSON, toJSON, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytes, toJSONBytesWithFastJsonConfig, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONStringWithDateFormat, toJSONStringZ, toString, toString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONStringTo, writeJSONStringWithFastJsonConfigcompute, 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 <T> T getObject(String key, TypeReference typeReference)
public byte[] getBytes(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,?> m)
public JSONObject fluentClear()
public JSONObject fluentRemove(Object key)
public JSONObject clone()
public boolean equals(Object obj)
public int hashCode()
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic <T> T toJavaObject(Class<T> clazz)
toJavaObject in class JSONpublic <T> T toJavaObject(Class<T> clazz, ParserConfig config, int features)
Copyright © 2012–2022 Alibaba Group. All rights reserved.