[GODRIVER-1809] ExtJSON indent Created: 11/Dec/20  Updated: 02/Nov/21  Resolved: 02/Nov/21

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

Type: Improvement Priority: Major - P3
Reporter: Steven Penny Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates GODRIVER-946 Add IndentExtJSON and MarshalExtJSONI... Closed
Related
is related to GODRIVER-946 Add IndentExtJSON and MarshalExtJSONI... Closed

 Description   

regular JSON encode has indent option:

https://golang.org/pkg/encoding/json/#Encoder.SetIndent

should be indent option for ExtJSON as well

 

https://pkg.go.dev/go.mongodb.org/mongo-driver/bson/bsonrw#NewExtJSONValueWriter



 Comments   
Comment by Gabby Asuncion [ 02/Nov/21 ]

Thanks again for your feature request srpen6@gmail.com! We have done this as part as GODRIVER-946 and it will be released in version 1.8.0.

Comment by Kevin Albertson [ 14/Dec/20 ]

Hi srpen6@gmail.com, thank you for the feature request! This seems like a reasonable feature to add. We are opening this for the backlog, and will schedule it when we have bandwidth.

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