parispurchase / json-io

Automatically exported from code.google.com/p/json-io
0 stars 0 forks source link

Double.NaN not handled correctly. #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Serialize somthing containing a NaN Double Value
2. Deserialize it

Exception in thread "main" java.io.IOException: Expected token: null
Last read: 
Peptide","ordinal":2},"targetCategory":{"@id":14,"name":"Tissue","ordinal":1},"a
ffinity":{"fromV":Na

What is the expected output? What do you see instead?
The NaN may has to be put into ""?

What version of the product are you using? On what operating system?
2.7.2

Please provide any additional information below.

Original issue reported on code.google.com by Beiri2...@gmail.com on 10 Nov 2014 at 4:45

GoogleCodeExporter commented 9 years ago
Same with infinity and negative infinity

Original comment by robed...@gmail.com on 24 Jun 2015 at 10:13