EditSafely

Change JSON Syntax

Replace braces, commas and quotes with other symbols.

Runs on your device, nothing uploaded

Style
Try:

0 chars · 0 lines

Output

Replace braces, commas and quotes with other symbols.

Type or paste above to see the result here.

Example: Turn JSON into a Lisp-flavored notation

What you paste never leaves this tab

Change JSON Syntax is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, an API response with live access tokens in it is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Change JSON Syntax

  1. 1. Paste your JSON. Put the JSON document you want transformed into the input pane. It is parsed structurally first, so the replacement happens on real punctuation, not just matching text.
  2. 2. Pick a style or set your own symbols. Tap Parentheses, Lua-like or PHP-like for a ready-made mapping, or choose Custom and fill in the becomes fields for the brace, bracket, comma, colon and quote characters with whatever symbols you want.
  3. 3. Review the transformed output. The result keeps the same nested structure as the original JSON but wears the punctuation you chose, which can turn familiar JSON into something like Lisp or a made-up notation.
  4. 4. Copy the result. Copy the transformed text and use it wherever a novelty format, a teaching example, or a custom-looking notation is more useful than standard JSON syntax.

When to use Change JSON Syntax

Change JSON Syntax replaces every brace, bracket, comma, colon and quote in a document with symbols you choose. It is for exploring how JSON's structure maps onto other notations, or for building a novelty version of a document for teaching or presentation purposes.

  • Turning JSON into a Lisp-like notation. You want to show how JSON's nested structure resembles S-expressions in Lisp. Replace the brackets and braces with parentheses to produce a side-by-side comparison for a talk or blog post.
  • Building a custom DSL preview. You are prototyping the syntax for a small configuration language and want to see how a real JSON document would look if it used your proposed punctuation instead.
  • Exploring alternate bracket conventions. You are curious how a document reads with different delimiter choices, such as swapping brackets for angle brackets, before deciding on a format for a new file type.
  • Creating a novelty formatter for a post. A blog post about JSON's grammar benefits from a playful example that visually distinguishes structure from content by swapping punctuation for readable words.

Examples

Turn JSON into a Lisp-flavored notation

Input

{"a": [1, 2], "b": "x"}

Output

('a'= (1; 2); 'b'= 'x')

Write it as a Lua table

Input

{"a": [1, 2], "b": "x"}

Output

{'a' = {1, 2}, 'b' = 'x'}

Write it as a PHP array

Input

{"a": [1, 2], "b": "x"}

Output

['a' => [1, 2], 'b' => 'x']

About the Change JSON Syntax tool

Change JSON Syntax is a free online tool that works entirely inside your web browser. Replace braces, commas and quotes with other symbols. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.

This page is one of 90 JSON utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.

You can shape the output with 8 settings, including Style, { becomes, } becomes and [ becomes, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.

Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every step is handled on your own machine rather than by a remote API.

Frequently asked questions

Does Change JSON Syntax cost anything?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.

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 →