JSON Lint
=========
A pure [JavaScript version](http://zaach.github.com/jsonlint/) of the service provided at [jsonlint.com](http://jsonlint.com).
## Command line interface
Install jsonlint with npm to use the command line interface:
npm install jsonlint -g
Validate a file like so:
jsonlint myfile.json
or pipe input into stdin:
cat myfile.json | jsonlint
jsonlint will either report a syntax error with details or pretty print the source if it is valid.
### Options
$ jsonlint -h
usage: jsonlint <file> [options]
file file to parse; otherwise uses stdin
options:
-v, --version print version and exit
-s, --sort-keys sort object keys
-i, --in-place overwrite the file
-t CHAR, --indent CHAR character(s) to use for indentation
-c, --compact compact error display
-V, --validate a JSON schema to use for validation
-e, --environment which specification of JSON Schema the validation file uses
## Module interface
I'm not sure why you wouldn't use the built in `JSON.parse` but you can use jsonlint from a CommonJS module:
var jsonlint = require("jsonlint");
jsonlint.parse('{"creative?": false}');
It returns the parsed object or throws an `Error`.
## Vim Plugins
* [Syntastic](http://www.vim.org/scripts/script.php?script_id=2736)
* [sourcebeautify](http://www.vim.org/scripts/script.php?script_id=4079)
## MIT License
Copyright (C) 2012 Zachary Carter
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
没有合适的资源?快使用搜索试试~ 我知道了~
PHP实例开发源码-JSON格式化工具(基于web的视图工具) php版.zip
共65个文件
js:27个
png:13个
css:7个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 161 浏览量
2022-10-15
12:29:44
上传
评论
收藏 268KB ZIP 举报
温馨提示
PHP实例开发源码—JSON格式化工具(基于web的视图工具) php版.zip PHP实例开发源码—JSON格式化工具(基于web的视图工具) php版.zip PHP实例开发源码—JSON格式化工具(基于web的视图工具) php版.zip
资源推荐
资源详情
资源评论
收起资源包目录
PHP实例开发源码—JSON格式化工具(基于web的视图工具) php版.zip (65个子文件)
132707301259972141
json
fileretriever.css 1KB
app.css 4KB
fileretriever.php 4KB
notify.js 4KB
img
icon_128.png 3KB
header_background.png 187B
logo_app.png 4KB
logo_app.xcf 32KB
logo.xcf 32KB
icon_orange.svg 5KB
icon_gray_16.svg 5KB
description.txt 435B
icon_gray.svg 5KB
logo.png 4KB
icon_16.png 601B
ajax.js 1KB
robots.txt 0B
index.html 6KB
jsoneditor
css
jsoneditor.css 4KB
img
jsoneditor-icons.svg 31KB
jsoneditor-icons.png 14KB
export.sh 487B
description.txt 266B
contextmenu.css 5KB
menu.css 2KB
searchbox.css 1KB
js
modebox.js 3KB
texteditor.js 9KB
node.js 80KB
header.js 1KB
util.js 18KB
module.js 2KB
jsoneditor.js 6KB
searchbox.js 9KB
contextmenu.js 14KB
appendnode.js 6KB
treeeditor.js 23KB
history.js 6KB
highlighter.js 2KB
datapolicy.txt 2KB
doc
doc.css 697B
img
actions_menu.png 15KB
main_menu.png 3KB
tree_editor.png 10KB
code_editor.png 11KB
splitter.png 2KB
button_actions_menu.png 142B
button_dragarea.png 144B
index.html 7KB
beta
index.html 387B
queryparams.js 2KB
splitter.js 5KB
lib
jsonlint
jsonlint.js 16KB
README.md 2KB
ace
mode-json.js 9KB
worker-json.js 30KB
theme-jsoneditor.js 5KB
theme-textmate.js 5KB
ace.js 276KB
ext-searchbox.js 9KB
app.js 11KB
fileretriever.js 20KB
hash.js 3KB
favicon.ico 1KB
cache.manifest 582B
共 65 条
- 1
资源评论
易小侠
- 粉丝: 6453
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功