We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e23fbc8 + 54a0de5 commit f77866fCopy full SHA for f77866f
extension/src/json-viewer/jsl-format.js
@@ -111,7 +111,10 @@ jsl.format = (function () {
111
}
112
break;
113
case '"':
114
- if (i > 0 && (json.charAt(i - 1) !== '\\' || (json.charAt(i - 1) == '\\' && json.charAt(i - 2) == '\\'))) {
+ if (i === 0) {
115
+ inString = true;
116
+ }
117
+ else if (json.charAt(i - 1) !== '\\' || (json.charAt(i - 1) == '\\' && json.charAt(i - 2) == '\\')) {
118
inString = !inString;
119
120
newJson += currentChar;
0 commit comments