Synthoid / ExportSheetData

Add-on for Google Sheets that allows sheets to be exported as JSON or XML.
MIT License
236 stars 46 forks source link

(JSON) Escape escaped chars #64

Open Synthoid opened 6 years ago

Synthoid commented 6 years ago

Add option to escape escaped chars. This is largely so external applications can read in chars correctly.

For example:

This is a newline test.
Pretty cool, right?

Currently exports as:

This is a newline test.\nPretty cool, right?

But an option to escape escaped chars would output:

This is a newline test.\\nPretty cool, right?
HawkenKing commented 5 years ago

is there an option to keep it as \n? Json parser in Unity uses \n not \ \ n

Synthoid commented 5 years ago

\n is currently what is used for newline characters. Escaping escaped chars would just be an extra option that can be used, so standard escaped chars like \n will always be available.