Coerce Capr object to json
as.json(x, pretty = TRUE, ...)
# S4 method for ConceptSet
as.json(x, pretty = TRUE, ...)
# S4 method for Cohort
as.json(x, pretty = TRUE, ...)
the capr object
a toggle to make the json look nice, part of jsonlite
additional arguments passes to jsonlite::toJSON