[JAVA-76] JSON serialize Collection, not just List Created: 06/Jan/10  Updated: 01/Mar/10  Resolved: 06/Jan/10

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 1.3

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


 Description   

In JSON.java ln 69

if ( o instanceof List){

could be
if ( o instanceof Collection){

that would allow adding Sets and other types of Collections.



 Comments   
Comment by auto [ 06/Jan/10 ]

Author:

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

Message: cast to Collection not List JAVA-76
http://github.com/mongodb/mongo-java-driver/commit/92ecc6ef258a9bad9909ae93f5e6cf2df5ca3ec7

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