1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

partially revert changes

This commit is contained in:
Andrei Paikin 2018-05-25 22:17:03 +03:00
parent 05074386d3
commit 7cad4c3b26
3 changed files with 10 additions and 10 deletions

View file

@ -178,7 +178,7 @@ public class JSONML {
newjo.accumulate(attribute, "");
}
}
if (arrayForm && !newjo.isEmpty()) {
if (arrayForm && newjo.length() > 0) {
newja.put(newjo);
}
@ -208,7 +208,7 @@ public class JSONML {
"' and '" + closeTag + "'");
}
tagName = null;
if (!arrayForm && !newja.isEmpty()) {
if (!arrayForm && newja.length() > 0) {
newjo.put("childNodes", newja);
}
if (ja == null) {