Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 73 by
tuomas.l...@gmail.com: Patch: use BigDecimal for numbers
instead of Double
http://code.google.com/p/json-simple/issues/detail?id=73
What steps will reproduce the problem?
1. put really large decimal number with also small parts in json input
2. parse
3. encode
4. detail is lost and/or formatting changes to scientific notation (which
is not exactly a defect)
What is the expected output? What do you see instead?
I'd like the numberical value to be preserved, with precision information
if possible
What version of the product are you using? On what operating system?
1.1.1 java6 and 7
Please provide any additional information below.
Patch is simple as one only need to replace Double handling with
yylex.java:608
{ BigDecimal val=new BigDecimal(yytext()); return new
Yytoken(Yytoken.TYPE_VALUE, val);