@jokerwang/json-format
v1.0.8
Published
json to stringify a dom structure Object
Downloads
23
Readme
简单的JSON格式化工具
例子:
var json = [
{
"name": "xiaoming",
"age": 19
},
{
"money": 44,
"array": [
1,2,3
]
}
];
var jsonObject = JSON.parse(json);
var jsonFormat = new JSONFormatter(document.body);
jsonFormat.format(jsonObject);