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.
1 parent 80e3312 commit dced076Copy full SHA for dced076
XML.java
@@ -31,7 +31,7 @@ of this software and associated documentation files (the "Software"), to deal
31
* This provides static methods to convert an XML text into a JSONObject,
32
* and to covert a JSONObject into an XML text.
33
* @author JSON.org
34
- * @version 2011-01-13
+ * @version 2011-02-11
35
*/
36
public class XML {
37
@@ -313,6 +313,9 @@ public static Object stringToValue(String string) {
313
if (string.equalsIgnoreCase("null")) {
314
return JSONObject.NULL;
315
}
316
+ if (string.equals("0")) {
317
+ return new Integer(0);
318
+ }
319
320
// If it might be a number, try converting it. If that doesn't work,
321
// return the string.
0 commit comments