We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58a0f4 commit adb0478Copy full SHA for adb0478
1 file changed
JSONML.java
@@ -175,7 +175,7 @@ private static Object parse(
175
if (!(token instanceof String)) {
176
throw x.syntaxError("Missing value");
177
}
178
- newjo.accumulate(attribute, keepStrings ? token :XML.stringToValue((String)token));
+ newjo.accumulate(attribute, keepStrings ? XML.unescape((String)token) :XML.stringToValue((String)token));
179
token = null;
180
} else {
181
newjo.accumulate(attribute, "");
@@ -226,7 +226,7 @@ private static Object parse(
226
227
if (ja != null) {
228
ja.put(token instanceof String
229
- ? keepStrings ? token :XML.stringToValue((String)token)
+ ? keepStrings ? XML.unescape((String)token) :XML.stringToValue((String)token)
230
: token);
231
232
0 commit comments