SublimeLinter-json
SublimeLinter plugin for JSON.
Details
Installs
- Total 152K
- Win 65K
- Mac 56K
- Linux 31K
| Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 2 | 2 | 2 | 2 | 4 | 5 | 2 | 2 | 0 | 0 | 2 | 2 | 0 | 1 | 0 | 2 | 1 | 2 | 7 | 2 | 2 | 3 | 4 | 3 | 5 | 0 | 0 | 0 | 2 | 3 | 5 | 2 | 0 | 2 | 0 | 0 | 4 | 2 | 0 | 1 | 0 |
| Mac | 0 | 1 | 1 | 1 | 0 | 1 | 2 | 1 | 3 | 1 | 0 | 1 | 1 | 2 | 6 | 3 | 0 | 1 | 1 | 0 | 4 | 4 | 2 | 1 | 0 | 2 | 2 | 6 | 3 | 2 | 3 | 0 | 2 | 4 | 3 | 1 | 2 | 1 | 2 | 3 | 2 | 3 | 1 | 5 | 1 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 4 | 0 | 1 | 1 | 0 | 0 | 2 | 1 | 1 | 1 | 2 | 0 | 1 | 2 | 0 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SublimeLinter-json
This linter plugin for SublimeLinter provides an interface to the JSON parser built into Sublime Text. It will be used with files that have the “JSON” syntax.
To facilitate editing Sublime Text settings files, which may contain comments, this linter allows line comments (//) and multiline block comments (/* */), but they may not appear at the end of a line (after JSON data).
Installation
SublimeLinter must be installed in order to use this plugin.
Please use Package Control to install the linter plugin.
Settings
This linter accepts a "strict" setting, which if false uses Sublime Text's “loose” parser so that trailing comma's and comments are accepted.
"linters": {
"json": {
"strict": false
}
}
In strict mode the linter also reports objects that repeat a key ({"a": 1, "a": 2}), at the second occurrence. This is on by default and can be turned off with "check_duplicate_keys", for example for very large files (the check makes parsing somewhat slower) or for files that use repeated keys on purpose, such as in place of comments.
Like every linter setting it can be set globally in the SublimeLinter settings, or per project in the SublimeLinter section of the project file:
"linters": {
"json": {
"check_duplicate_keys": false
}
}
The check is not done when "strict" is false.
- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html
- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html