[JAVA-161] Change JSON encoder to support Iterable instead of Collection Created: 01/Sep/10  Updated: 29/Oct/10  Resolved: 01/Sep/10

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

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

Any


Attachments: Text File mongo.patch    

 Description   

JSON.java currently encodes Collection of other objects. Since all it does it loop through the instances, it would be simpler (and easier to feed items into the JSON encoder) if this was Iterable instead.



 Comments   
Comment by Norman Elton [ 01/Sep/10 ]

Thanks

Comment by auto [ 01/Sep/10 ]

Author:

{'login': 'scotthernandez', 'name': 'Scott Hernandez', 'email': 'scotthernandez@hotmail.com'}

Message: more general support for Iterable in JSON.serialize - JAVA-161
http://github.com/mongodb/mongo-java-driver/commit/cef63ebb3d4f8ab41cc88fe533eeaed6c6aeb704

Comment by Scott Hernandez (Inactive) [ 01/Sep/10 ]

Patch avail: http://github.com/scotthernandez/mongo-java-driver/commit/7f1ba21e301c2a6803100c7311fa42461f3af7b5

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