Add functions to marshal to pretty printed Extended JSON and to directly marshal to pretty printed Extended JSON.
Original Issue:
Currently, trying to call json.Marshal on a bson.D results in the document being marshalled as a standard array of structs; i.e. you end up with a JSON array of documents containing "Key" and "Value".
I'm aware that the go driver also supports encoding to extended JSON, and that does work, but it's not as usable because it doesn't support indenting/pretty-printing.
- is depended on by
-
GODRIVER-2186 Format Astrolabe events.json with newlines
- Backlog
- is duplicated by
-
GODRIVER-948 Implement pretty printing of extended JSON
- Closed
-
GODRIVER-1809 ExtJSON indent
- Closed
- related to
-
GODRIVER-1809 ExtJSON indent
- Closed