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| 构造器和说明 |
|---|
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, 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, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONString, toJSONStringWithDateFormat, toJSONStringZ, toString, toString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONString, writeJSONStringTocompute, 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 在接口中 Map<String,Object>public boolean containsValue(Object value)
containsValue 在接口中 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,? extends Object> m)
public JSONObject fluentClear()
public JSONObject fluentRemove(Object key)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke 在接口中 InvocationHandlerThrowablepublic <T> T toJavaObject(Class<T> clazz)
toJavaObject 在类中 JSONpublic <T> T toJavaObject(Class<T> clazz, ParserConfig config, int features)
Copyright © 2012–2020 Alibaba Group. All rights reserved.