[JAVA-1272] Support reading MongoDB Extended JSON containing $numberLong Created: 11/Jun/14  Updated: 18/Jan/22  Resolved: 18/Jun/14

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: 2.12.3

Type: Improvement Priority: Major - P3
Reporter: David Golub Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-167 Support $numberLong for extended JSON... Closed
Related

 Description   

MongoDB 2.6 introduced support for the NumberLong data type in MongoDB Extended JSON using $numberLong. However, the Java driver does not yet support it. If you try to insert a document that makes use of $numberLong, you'll get an error saying that field names starting with dollar signs are not allowed. This should be a matter of adding a couple of lines to JSONCallback.java.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Ported support for $numberLong to 3.0.x

Refs: JAVA-1272
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/bacc37727ad655466b81d4a73a58bc2cf14b910b

Comment by Githook User [ 23/Jul/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Ported support for $numberLong to 3.0.x

Refs: JAVA-1272
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/bacc37727ad655466b81d4a73a58bc2cf14b910b

Comment by Githook User [ 25/Jun/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added support for reading $numberLong in extended JSON

JAVA-1272
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/79120a537661945a0389a114540d2449cd0dba9a

Comment by Githook User [ 18/Jun/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Added support for reading $numberLong in extended JSON

JAVA-1272
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/79120a537661945a0389a114540d2449cd0dba9a

Comment by David Golub [ 11/Jun/14 ]

See https://github.com/10gen/mms/commit/ae176a15399d4820f54c32a8fb8cc9d50e01ed36 for a temporary workaround I just added to MMS to address the lack of support for $numberLong. It should be fairly straightforward to adapt this for insertion into JSONCallback in the Java driver source code.

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