CSON Converter
Convert JSON to CSON, and vice versa.
Details
Installs
- Total 769
- Win 298
- Mac 382
- Linux 89
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CSON Converter
Converts CSON, JSON and XML
Installation
Package Control
- 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!
Manual installation
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.
Usage
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.
Keyboard Shortcuts
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:
Action | Mnemonic | Shortcut |
---|---|---|
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 |
Settings
Some of the default conversion settings can be modified from the Package Settings menu:
- Indentation level (
int
) - Sort keys (
boolean
)
License
This work is licensed under the The MIT License.