Convert JSON to CSON
Convert a JSON file to CoffeeScript object notation (CSON). Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert JSON to CSON
- 1. Paste your JSON. Paste the JSON object or array you want converted to CoffeeScript object notation, the config format used by editors like Atom that grew out of the CoffeeScript language.
- 2. Review the CSON output. There are no settings to adjust; the tool writes keys without quotes where possible, uses single-quoted strings, and formats arrays across multiple lines the way CSON files are typically written.
- 3. Copy the CSON result. Copy the generated CSON and paste it into a config file that expects this format, such as an Atom package's settings or another CoffeeScript-based tool's configuration.
When to use Convert JSON to CSON
Convert JSON to CSON turns a JSON document into CoffeeScript object notation, the lighter-weight config syntax that tools built around CoffeeScript, most notably the Atom editor, use for their settings files instead of plain JSON.
- Writing config for an Atom editor package. You are building or maintaining an Atom package and need its settings expressed in CSON, but you already have the same config modeled as JSON elsewhere in your project.
- Porting a config file into a CoffeeScript-based project. An older CoffeeScript project expects its configuration in CSON format, and you have equivalent settings currently stored as JSON from a different part of the system.
- Learning CSON syntax by comparing it to familiar JSON. You are new to CSON and want to see how a JSON structure you already understand translates into the quote-optional, indentation-based CSON syntax.
- Migrating snippets or keybindings between editors. You are moving snippet or keybinding definitions from a JSON-based editor into an Atom-based workflow that expects the same data in CSON.
Examples
Convert an object to CSON
Input
{"name": "Ada", "tags": ["math", "code"]}Output
name: 'Ada' tags: [ 'math' 'code' ]
About the Convert JSON to CSON tool
Convert JSON to CSON runs as plain JavaScript in your browser tab, with no server behind it. Convert a JSON file to CoffeeScript object notation (CSON). Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's JSON Tools section, 90 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
There is nothing to configure. Provide the input and the result appears on its own. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Convert JSON to CSON free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.