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

Removes custom XML stringToValue method in favor of keeping a consistent

implementation in JSONObject
This commit is contained in:
John J. Aylward 2016-01-27 15:03:19 -05:00
parent 39b1c0cb66
commit 3007fc8ebe
3 changed files with 7 additions and 52 deletions

View file

@ -174,7 +174,7 @@ public class JSONML {
if (!(token instanceof String)) {
throw x.syntaxError("Missing value");
}
newjo.accumulate(attribute, XML.stringToValue((String)token));
newjo.accumulate(attribute, JSONObject.stringToValue((String)token));
token = null;
} else {
newjo.accumulate(attribute, "");
@ -227,7 +227,7 @@ public class JSONML {
} else {
if (ja != null) {
ja.put(token instanceof String
? XML.stringToValue((String)token)
? JSONObject.stringToValue((String)token)
: token);
}
}