Merge pull request #995 from marilynel/master

Fix regression XML parsing null with keepStrings
This commit is contained in:
Sean Leary
2025-07-09 20:18:48 -05:00
committed by GitHub
2 changed files with 19 additions and 4 deletions

View File

@@ -428,6 +428,9 @@ public class XML {
config.isKeepNumberAsString()
? ((String) token)
: obj);
} else if (obj == JSONObject.NULL) {
jsonObject.accumulate(config.getcDataTagName(),
config.isKeepStrings() ? ((String) token) : obj);
} else {
jsonObject.accumulate(config.getcDataTagName(), stringToValue((String) token));
}