Skip to content

Classes

GlobalDescription
JsonEx

JsonEx

Kind: global class

  • JsonEx
    • new JsonEx()
    • .maxDepth : Number

new JsonEx()

处理带有对象信息的 JSON 的静态类。
The static class that handles JSON with object information.


JsonEx.maxDepth : Number

对象的最大深度。
The maximum depth of objects.

Kind: static property of JsonEx
Default: 100
Properties

Name
maxDepth

.stringify(object) ⇒ String

将对象转换为带有对象信息的 JSON 字符串。
Converts an object to a JSON string with object information.

Kind: static function
Returns: String - JSON 字符串 The JSON string

ParamTypeDescription
objectObject要转换的对象 The object to be converted

.parse(json) ⇒ Object

解析 JSON 字符串并重构相应的对象。
Parses a JSON string and reconstructs the corresponding object.

Kind: static function
Returns: Object - 重构的对象 The reconstructed object

ParamTypeDescription
jsonStringJSON 字符串 The JSON string

.makeDeepCopy(object) ⇒ Object

创建指定对象的深度副本。
Makes a deep copy of the specified object.

Kind: static function
Returns: Object - 复制的对象 The copied object

ParamTypeDescription
objectObject要复制的对象 The object to be copied

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新