项目
在 GitHub 查看
tailscale/hujson
关于
HuJSON:为人类设计的 JSON(JWCC:支持注释和末尾逗号的 JSON)
开发工具实测星标增长
- 24小时
- 0
- 7天
- +6
- 15天
- +13
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文HuJSON - "Human JSON" (JWCC)
The github.com/tailscale/hujson package implements
the JWCC extension
of standard JSON.
The JWCC format permits two things over standard JSON:
- C-style line comments and block comments intermixed with whitespace,
- allows trailing commas after the last member/element in an object/array.
All JSON is valid JWCC.
For details, see the JWCC docs at:
https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
Formatting with hujsonfmt
hujsonfmt is a program that formats HuJSON files. Install it by running:
go install github.com/tailscale/hujson/cmd/hujsonfmt@latest
Visual Studio Code association
Visual Studio Code supports a similar jsonc (JSON with comments) format. To
treat all *.hujson files as jsonc with trailing commas allowed, you can add
the following snippet to your Visual Studio Code configuration:
"files.associations": {
"*.hujson": "jsonc"
},
"json.schemas": [{
"fileMatch": ["*.hujson"],
"schema": {
"allowTrailingCommas": true
}
}]
探索相关项目
加载中…