inkle / inkle/ink

Exported JSON doesn't honor escaped characters

Open
#691 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

I need to represent newlines in my exported JSON as `\n` but Ink seems to thwart my plans at every turn :)

If I insert `\n` into my text, the backslash (`\`) is stripped out and I just see the letter `n`. If I use a double backslash (`\\n`), then all three characters end up in the exported JSON: (`\\n`).

How can I get just the `\n` to appear in the JSON?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.