Convert JSON to CSON, and vice versa.
- Total 446
- Win 178
- OS X 213
- Linux 55
|May 27||May 26||May 25||May 24||May 23||May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4||May 3||May 2||May 1||Apr 30||Apr 29||Apr 28||Apr 27||Apr 26||Apr 25||Apr 24||Apr 23||Apr 22||Apr 21||Apr 20||Apr 19||Apr 18||Apr 17||Apr 16||Apr 15||Apr 14||Apr 13|
Converts CSON, JSON and XML
- Make sure you already have Package Control installed
- Choose “Install Package” from the Command Palette (Super+Shift+p)
- Type Converter and press Enter
- Repeat steps 2 and 3 to install “Better CoffeeScript”
With auto_upgrade enabled, Package Control will keep all installed packages up-to-date!
Since package dependencies are handled by Package Control, manual installation is not advised! If you still want to install from source, you probably know what you are doing so we won’t cover that here.
The Command Palette currently offers the following commands:
- Convert: CSON to JSON
- Convert: CSON to XML
- Convert: JSON to CSON
- Convert: JSON to XML
- Convert: XML to CSON
- Convert: XML to JSON
Note: Since conversion is based on scope, make sure the a supported CoffeeScript package is installed as well. Using Better CoffeeScript is recommended, though CoffeeScript, IcedCoffeeScript and Mongoose CoffeeScript are also supported.
The following examples all use the macOS shortcuts, for Linux or Windows use Ctrl+Alt rather than Cmd+Alt.
Memorizing the keyboard shortcuts for conversion is easy. Just think of C for CSON, J for JSON, and X for XML:
|CSON to JSON||“C to J”||Ctrl+C, Ctrl+J|
|CSON to XML||“C to X”||Ctrl+C, Ctrl+X|
|JSON to CSON||“J to C”||Ctrl+J, Ctrl+C|
|JSON to XML||“J to X”||Ctrl+J, Ctrl+X|
|XML to CSON||“J to C”||Ctrl+X, Ctrl+C|
|XML to JSON||“J to X”||Ctrl+X, Ctrl+J|
Some of the default conversion settings can be modified from the Package Settings menu:
- Indentation level (
- Sort keys (
This work is licensed under the The MIT License.
You are welcome support this project using Flattr or Bitcoin