EasyJSONBase class

Implementers

Constructors

EasyJSONBase()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
json Object
read / write
jsonType int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

get(Object path) Object
getArray(Object path) EasyJSONArray
getBoolean(Object path) bool
getDouble(Object path) double
getInt(Object path) int
getJsonType() int
getObject(Object path) EasyJSONObject
getSafeArray(Object path) EasyJSONArray
以安全方式获取数组,如果获取的是null,转换为空数组[] @param path @return @throws EasyJSONException
getSafeObject(Object path) EasyJSONObject
以安全方式获取对象,如果获取的是null,转换为空对象{} @param path @return @throws EasyJSONException
getSafeString(Object path) String
以安全方式获取字符串,如果获取的是null,转换为空字符串"" @param path @return @throws EasyJSONException
getString(Object path) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toPrettyString(int indentSpaces) String
以格式化的形式输出json字符串 @param indentSpaces 缩进空格数 @return
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

JSON_TYPE_ARRAY int
final
JSON_TYPE_INVALID int
final
JSON_TYPE_OBJECT int
final

Static Methods

guessJSONType(String jsonString) int
isJSONString(String jsonString) bool
判断给定的字符串是否为JSON格式的字符串(支持JSON对象和数组) @param jsonString @return
isPrimitiveType(Object object) bool
通过对象判断是否为基本类型 @param object @return
parse(String jsonString) EasyJSONBase
splitPath(String path) List<String>
将path分割成各个name,例如 name1.name22.name31 分拆成 name1, name2, 0, 2, name3, 1 2.name11 @param path @return