[JAVA-734] JSON.parse() should handle $timestamp correctly Created: 15/Jan/13 Updated: 19/Mar/13 Resolved: 29/Jan/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 2.10.1 |
| Fix Version/s: | 2.11.0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Sjoerd Mulder | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
When trying to parse a JSON string containing Mongo Extended JSON like: http://www.mongodb.org/display/DOCS/Mongo+Extended+JSON }")) |
| Comments |
| Comment by auto [ 23/Jan/13 ] |
|
Author: {u'date': u'2013-01-23T14:45:55Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: Merge pull request #100 from sjoerdmulder/timestamp_fix
|
| Comment by auto [ 23/Jan/13 ] |
|
Author: {u'date': u'2013-01-23T13:30:36Z', u'email': u'sjoerd@frontendless.nl', u'name': u'Sjoerd Mulder'}Message: |
| Comment by Sjoerd Mulder [ 15/Jan/13 ] |
|
Actually it should be $timestamp: { t: 123, i: 456 }. Documentation is correct, looking at the code https://github.com/mongodb/mongo/blob/master/src/mongo/db/jsobj.cpp. Updating pull-request |
| Comment by Sjoerd Mulder [ 15/Jan/13 ] |
|
Pull request: https://github.com/mongodb/mongo-java-driver/pull/98 |