프로젝트
GitHub에서 보기
tailscale/hujson
소개
HuJSON: 사람을 위한 JSON (JWCC: 주석과 후행 쉼표를 지원하는 JSON)
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +6
- in 15 days
- +13
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHuJSON - "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
}
}]
관련 프로젝트 살펴보기
불러오는 중…