-
Type: Bug
-
Resolution: Done
-
Priority: Blocker - P1
-
Affects Version/s: 3.2.1
-
Component/s: mongoexport
-
None
-
Environment:OSX, Amazon Linux
-
Server Tools F (01/29/16)
-
v3.2, v3.0
-
(copied to CRM)
This is a regression from 2.6.x.
> db.artists.insert({ "name" : "Andy Warhol", "genome" :
{ "Pop Art" : 10 } })
WriteResult(
)
> db.artists.insert({ "name" : "Quoted Andy Warhol", "genome" :
{ "\"Pop Art\"" : 10 } })
Cannot use 'commands' readMode, degrading to 'legacy' mode
WriteResult(
)
> db.artists.find()
{ "_id" : ObjectId("5699157cc42b4297c59e8165"), "name" : "Andy Warhol", "genome" :
}
{ "_id" : ObjectId("56991584c42b4297c59e8166"), "name" : "Quoted Andy Warhol", "genome" :
}
> exit
bye
/tmp$ mongoexport --db test -c artists
2016-01-15T10:51:52.266-0500 connected to: localhost
{"_id":
,"name":"Andy Warhol","genome":{"Pop Art":10.0}}
2016-01-15T10:51:52.284-0500 Failed: json: error calling MarshalJSON for type bsonutil.MarshalD: cannot marshal [
]: json: error calling MarshalJSON for type bsonutil.MarshalD: invalid character 'P' after object key
- is duplicated by
-
TOOLS-1042 Failed: error marshalling metadata json for collection
- Closed