- JSON Formatter
- Format JSON using the JSONLint Formatter
- 14995 Installs
Format JSON files using the JSONLint formatter.
To format a JSON file, open the command palette (⇧⌘P by default) and type "Format JSON". Selecting that option will format the file.
In the extension preferences, the amount of spaces per indent can be set. It defaults at 4.
The original formatter can be found at https://github.com/umbrae/jsonlintdotcom
Added option to format JSON and keep the indent size set in the editor
Reverted single quotes support as it caused issues formatting valid JSON
Now supports single quotes as well as double quotes.
Sets editor tab size to JSON indent size.
Updated README with instructions on how to use.
Made indent size customizable.
Fixed screenshot in README
Updated Repository URL
Copyright (c) 2020 Lucas Kellar
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.