summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShraya Ramani <shraya.ramani@10gen.com>2015-11-18 17:41:56 -0500
committerShraya Ramani <shraya.ramani@10gen.com>2015-11-19 11:06:51 -0500
commitb420158543bca4ed213ef1022eb866a0cd36af6e (patch)
tree53714609237f607f1afaff316976d33abc0a057c
parent8baae1f6d28791b5e827b43a040895c25570a625 (diff)
downloadmongo-b420158543bca4ed213ef1022eb866a0cd36af6e.tar.gz
TOOLS-702 bsondump keeps attribute order
-rw-r--r--bsondump/bsondump.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsondump/bsondump.go b/bsondump/bsondump.go
index fe2617c0c88..4ca2e625db2 100644
--- a/bsondump/bsondump.go
+++ b/bsondump/bsondump.go
@@ -45,7 +45,7 @@ func (bd *BSONDump) Open() error {
}
func printJSON(doc *bson.Raw, out io.Writer, pretty bool) error {
- decodedDoc := bson.M{}
+ decodedDoc := bson.D{}
err := bson.Unmarshal(doc.Data, &decodedDoc)
if err != nil {
return err