-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phone numbers that start with one 0 get treated as int #49
Comments
Phone numbers should be represented as strings. Wrap them in quotes. |
Hello, The method doesn't convert 00222 into an int. If it the second character is a 0 is keeps it as a string. |
Integers in JSON may not start with a leading zero. See http://json.org/ |
Ah! now I understand. I do believe the code is not following that specification correctly though. changed this bit of code on XML.java, line 330: tested it on: worked perfectly. thanks. |
Add test that an invalid escape sequence results in a JSONException a…
Hello,
Here in brazil we have phone numbers that start with 0800 and they get treated as ints thereby losing the first 0.
Tracked down the error to this bit of code in XML.java
It seems to want to convert any value 0XNNNN... (where X isn't 0 and N is any digit) as an int.
Any particular reason for this?
The text was updated successfully, but these errors were encountered: