- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- org.redkale.convert.json.JsonObject
-
- 所有已实现的接口:
Serializable
,Cloneable
,Map<String,Object>
,JsonElement
public class JsonObject extends LinkedHashMap<String,Object> implements JsonElement
常规json对象详情见: https://redkale.org
- 从以下版本开始:
- 2.8.0
- 作者:
- zhangjx
- 另请参阅:
JsonElement
,JsonString
,JsonArray
, 序列化表格
-
-
嵌套类概要
-
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
构造器概要
构造器 构造器 说明 JsonObject()
JsonObject(Map map)
-
方法概要
-
从类继承的方法 java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
从类继承的方法 java.util.AbstractMap
equals, hashCode
-
从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
构造器详细资料
-
JsonObject
public JsonObject()
-
JsonObject
public JsonObject(Map map)
-
-
方法详细资料
-
convertFrom
public static JsonObject convertFrom(String text)
-
convertFrom
public static JsonObject convertFrom(char[] text)
-
convertFrom
public static JsonObject convertFrom(char[] text, int offset, int length)
-
create
public static JsonObject create()
-
of
public static JsonObject of(Object bean)
-
toObject
public <T> T toObject(Type type)
-
append
public JsonObject append(String key, Object value)
-
append
public JsonObject append(String key, Collection value)
-
putObject
public JsonObject putObject(String key)
-
has
public boolean has(String key)
-
isNull
public boolean isNull(String key)
-
isJsonObject
public boolean isJsonObject(String key)
-
isJsonArray
public boolean isJsonArray(String key)
-
getJsonObject
public JsonObject getJsonObject(String key)
-
getBigDecimal
public BigDecimal getBigDecimal(String key)
-
getBigDecimal
public BigDecimal getBigDecimal(String key, BigDecimal defValue)
-
getBigInteger
public BigInteger getBigInteger(String key)
-
getBigInteger
public BigInteger getBigInteger(String key, BigInteger defValue)
-
getDouble
public double getDouble(String key, double defValue)
-
getLong
public long getLong(String key, long defValue)
-
getFloat
public float getFloat(String key, float defValue)
-
getInt
public int getInt(String key, int defValue)
-
getShort
public short getShort(String key, short defValue)
-
getByte
public byte getByte(String key, byte defValue)
-
getBoolean
public boolean getBoolean(String key, boolean defValue)
-
isObject
public final boolean isObject()
- 指定者:
isObject
在接口中JsonElement
-
isArray
public final boolean isArray()
- 指定者:
isArray
在接口中JsonElement
-
isString
public final boolean isString()
- 指定者:
isString
在接口中JsonElement
-
toString
public String toString()
- 覆盖:
toString
在类中AbstractMap<String,Object>
-
-