[CDRIVER-380] add api for custom json serialization Created: 19/Jun/14  Updated: 03/May/17  Resolved: 02/Sep/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Christian Hergert Assignee: Backlog - C Driver Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

currently we only support mongodb extended JSON format. It might be useful to support alternative formats such as the shell JSON format.

I think we can keep this contained to serialization only, as deserialization would be a whole other can of worms.

This can probably be done with a visitor style callback vtable similar to bson_visitor_t.



 Comments   
Comment by Hannes Magnusson [ 02/Sep/16 ]

That doesn't sound like a good idea.
No other driver supports the "shell format" and I don't think we should either.

Generated at Wed Feb 07 21:09:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.