josdejong / josdejong/jsoneditor

Edit a value in a plain text area (handling special characters like \n)

Open
#1,340 9 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
12.3k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Seems like the jsoneditor (version 9.1.10) doesn't allow user to see and edit the real json string. User has to think about json escaping rules. This makes very hard to edit the strings with a large number of " and \ characters (i.e., the peaces of code with own escaping).
The most logical place to show and edit the unescaped (real) string is string editor in tree mode. But does not provide this. And moreover, jsoneditor tries to automatically fix the escaping after editing and it brakes some strings like: `x = "the \"x\" is 'the \\\"x\\\" value'";`

Is it possible to switch tree mode to use real string values instead of json-escaped ones?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.