[JAVA-177] JSON parsing doesn't handle exponents Created: 07/Oct/10  Updated: 29/Oct/10  Resolved: 08/Oct/10

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.2

Type: Bug Priority: Major - P3
Reporter: Jorge Ortiz Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File JAVA-177.patch    

 Description   

The following code, which tries to parse valid JSON, throws an exception:

com.mongodb.util.JSON.parse("

{\"number\" : 3.14e6}

")
com.mongodb.util.JSON.parse("

{\"number\" : 3.14E6}

")



 Comments   
Comment by Eliot Horowitz (Inactive) [ 08/Oct/10 ]

Thanks jorge

Comment by auto [ 08/Oct/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: fix exponent JSON parsing JAVA-177
http://github.com/mongodb/mongo-java-driver/commit/baa76fd521c99a332bd52b5285c8ff2ae32500c5

Comment by Jorge Ortiz [ 07/Oct/10 ]

A patch for the issue.

Generated at Thu Feb 08 08:51:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.