mj: query clean-up and substitution for mongoDB

View source: R/credentials.R

mjR Documentation

query clean-up and substitution for mongoDB

Description

cleans up mongoDB JSON to standard JSON and perform glue replacements with double braces

Usage

mj(txt, replace = T, .open = "{{", .close = "}}")

Examples

# enclose variables that need to be substituted with double curvy braces, e.g.
term <- "tree"
mj('{$search: "{{term}}"')
# {"$search": "tree"}

BCHSI/credbl documentation built on April 16, 2023, 4:17 a.m.