Description Usage Arguments Value See Also Examples
Converts a JSON string to a mongo BSON object.
1 | mongo.bson.from.JSON(JSON, simplifyVector = FALSE, ...)
|
JSON |
(string) A valid JSON string. |
simplifyVector |
(FALSE) coerse JSON arrays containing only scalars into a vector. |
... |
additional parameters parsed to fromJSON |
A BSON object.
mongo.find
,
mongo.bson.from.list
,
mongo.bson
,
fromJSON
.
1 2 | mongo.bson.from.JSON('{"name" : "Peter"}')
mongo.bson.from.JSON('{"_id" : 1}')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.