mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
Merge pull request #392 from philippgille/patch-1
Remove wrong apostrophe
This commit is contained in:
commit
fbad2d0017
@ -2212,7 +2212,7 @@ public class JSONObject {
|
|||||||
// not all Numbers may match actual JSON Numbers. i.e. fractions or Imaginary
|
// not all Numbers may match actual JSON Numbers. i.e. fractions or Imaginary
|
||||||
final String numberAsString = numberToString((Number) value);
|
final String numberAsString = numberToString((Number) value);
|
||||||
try {
|
try {
|
||||||
// Use the BigDecimal constructor for it's parser to validate the format.
|
// Use the BigDecimal constructor for its parser to validate the format.
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
BigDecimal testNum = new BigDecimal(numberAsString);
|
BigDecimal testNum = new BigDecimal(numberAsString);
|
||||||
// Close enough to a JSON number that we will use it unquoted
|
// Close enough to a JSON number that we will use it unquoted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user