EditSafely

Convert CSON to JSON

Convert CoffeeScript object notation (CSON) to a JSON file. Runs entirely in your browser, so your data never leaves your device.

0 chars · 0 lines

Output

The result appears here as you type.

Options

How to use Convert CSON to JSON

  1. 1. Paste your CSON. Paste the CoffeeScript object notation you want converted, such as an Atom package config file or a CSON snippet copied from another CoffeeScript-based project.
  2. 2. Pick the output indent. Choose 2 spaces, 4 spaces or tabs for the Indent setting to control how the resulting JSON is formatted, independent of how the original CSON file was laid out.
  3. 3. Copy the JSON output. Copy the converted JSON and use it anywhere JSON is expected, since most modern tools, linters and validators do not understand CSON syntax directly.

When to use Convert CSON to JSON

Convert CSON to JSON turns CoffeeScript object notation, the config format used by tools like the Atom editor, into standard JSON that modern tooling, validators and other applications can actually parse.

  • Reading an Atom package's config in a JSON-based tool. You want to inspect or validate an Atom package's CSON settings file using a JSON Schema validator or a general-purpose JSON tool that has no CSON support.
  • Migrating away from a CoffeeScript-based project. A project originally built around CoffeeScript is moving to plain JavaScript, and its CSON config files need to become JSON as part of the migration.
  • Comparing legacy CSON settings against current JSON config. You maintain both an older CSON-based config and a newer JSON-based one and want to diff them directly, which requires converting the CSON file first.
  • Extracting keybindings or snippets for reuse elsewhere. You want to reuse keybinding or snippet definitions from a CSON file in a different editor or tool that only reads JSON.

Examples

Convert CSON to JSON

Input

name: 'Ada'
tags: [
  'math'
  'code'
]

Output

{
  "name": "Ada",
  "tags": [
    "math",
    "code"
  ]
}

About the Convert CSON to JSON tool

Convert CSON to JSON runs as plain JavaScript in your browser tab, with no server behind it. Convert CoffeeScript object notation (CSON) to a JSON file. 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.

You can shape the output with the Indent setting, and the result refreshes the moment you change it. 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 CSON to JSON 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.

Related tools

All JSON Tools