mj | R Documentation |
cleans up mongoDB JSON to standard JSON and
perform glue
replacements with double braces
mj(txt, replace = T, .open = "{{", .close = "}}")
# enclose variables that need to be substituted with double curvy braces, e.g.
term <- "tree"
mj('{$search: "{{term}}"')
# {"$search": "tree"}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.