Json Toolkit is an extension plug-in for processing Json data. It includes formatting, validation, sorting and other functions.
[中文]
Features
- Validate JSON: Check if JSON syntax is valid and show detailed error messages.
- Prettify Json: Format JSON with proper indentation.
- Minify JSON: Compress JSON to a single line format.
- Escape Json: Escapes a Json string.
- Unescape Json: Remove escaped Json string.
- Json To Unicode: Convert Json to Unicode characters.
- Unicode To Json: Convert Unicode to Json characters.
- Sort Keys: Sort object keys alphabetically (recursively for nested objects).
Usage
Command Palette
- Open the command palette with
Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).
- Type
Json Toolkit and select the desired command:
Json Toolkit: Validate JSON: Check JSON syntax validity
Json Toolkit: Prettify Json: Format JSON with proper indentation
Json Toolkit: Minify JSON: Compress JSON to single line
Json Toolkit: Escape JSON: Escapes a Json string
Json Toolkit: Unescape JSON: Remove escaped Json string
Json Toolkit: JSON to Unicode Escaped: Convert Json to Unicode characters
Json Toolkit: Unicode Escaped to JSON: Convert Unicode to Json characters
Json Toolkit: Sort Json By Key: Sort by Json Key
Installation
Install this extension from the Visual Studio Code Marketplace or by searching for "JSON Toolkit" in the VS Code Extensions view.
License
This extension is licensed under the MIT License.
| |