Devtools.supstudio.in

Tools/JSON

Unicode escapes

What this is

JSON.stringify leaves UTF-8 as UTF-8. Some legacy systems want ASCII-only JSON (\u00e9 for é). Enable ASCII \u on the formatter to rewrite every code unit above 0x7E. Both forms are valid JSON; pick what the consumer decodes. Emoji become UTF-16 surrogate pairs, which is what JSON.stringify already does when you force ASCII.

Open the formatter — paste stays in this tab.

FAQ

BOM?
Do not prefix JSON with a UTF-8 BOM. Repair strips it. APIs that concatenate streams will otherwise see  as a parse error.

Related