Convert JSON to CSON, and vice versa.
- Total 711
- Win 275
- Mac 352
- Linux 84
|Dec 1||Nov 30||Nov 29||Nov 28||Nov 27||Nov 26||Nov 25||Nov 24||Nov 23||Nov 22||Nov 21||Nov 20||Nov 19||Nov 18||Nov 17||Nov 16||Nov 15||Nov 14||Nov 13||Nov 12||Nov 11||Nov 10||Nov 9||Nov 8||Nov 7||Nov 6||Nov 5||Nov 4||Nov 3||Nov 2||Nov 1||Oct 31||Oct 30||Oct 29||Oct 28||Oct 27||Oct 26||Oct 25||Oct 24||Oct 23||Oct 22||Oct 21||Oct 20||Oct 19||Oct 18|
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.