We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b2d65 commit 39b1c0cCopy full SHA for 39b1c0c
JSONObject.java
@@ -1502,7 +1502,7 @@ public static Object stringToValue(String string) {
1502
try {
1503
if (string.indexOf('.') > -1 || string.indexOf('e') > -1
1504
|| string.indexOf('E') > -1
1505
- || "0".equals(string.substring(1))) {
+ || "-0".equals(string)) {
1506
d = Double.valueOf(string);
1507
if (!d.isInfinite() && !d.isNaN()) {
1508
return d;
0 commit comments