[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: |
|
| 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 - |
| Comment by Scott Hernandez (Inactive) [ 01/Sep/10 ] |
|
Patch avail: http://github.com/scotthernandez/mongo-java-driver/commit/7f1ba21e301c2a6803100c7311fa42461f3af7b5 |