代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/jquery-jsonview 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Formats & syntax highlights JSON.
Port of Ben Hollis's JSONView extension for Firefox: http://jsonview.com
var json = {"hey": "guy","anumber": 243,"anobject": {"whoa": "nuts","anarray": [1,2,"thr<h1>ee"], "more":"stuff"},"awesome": true,"bogus": false,"meaning": null, "japanese":"明日がある。", "link": "http://jsonview.com", "notLink": "http://jsonview.com is great"};
$(function() {
$("#json").JSONView(json);
// with options
$("#json-collasped").JSONView(json, { collapsed: true });
});
jQuery JSONView can be configured using the following options.
collapsed
- Collapse all nodes when rendering first time, default is false
.nl2br
- Convert new line to <br>
in String, default is false
.recursive_collapser
- Collapse nodes recursively, default is false
.escape
- Escape HTML in key, default is true
.strict
- In strict mode, invalid JSON value type will throw a error, default is false
.jQuery JSONView provide following methods to allow you control JSON nodes, all methods below accept a level argument to perform action on the specify node.
jQuery#JSONView('collapse', [level])
- Collapse nodes.jQuery#JSONView('expand', [level])
- Expand nodes.jQuery#JSONView('toggle', [level])
- Toggle nodes.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。