Parse a combination-filter query to json
parse_tojson_filter.Rd
Create a json query sub-string based on a combination \"in\" and \"and\" constraints
Examples
parse_tojson_filter(
list(
day_number = c("uLQo4", "qf0jG", "aMjLP"),
reason = c("bBrtT", "ThjPJ", "hsHyW", "m2m9K"),
education_phase = c("5UNdi", "crH31")
)
) |>
cat()
#> {
#> "and": [
#> {
#> "filters": {
#> "in": [
#> "uLQo4",
#> "qf0jG",
#> "aMjLP"
#> ]
#> }
#> },
#> {
#> "filters": {
#> "in": [
#> "bBrtT",
#> "ThjPJ",
#> "hsHyW",
#> "m2m9K"
#> ]
#> }
#> },
#> {
#> "filters": {
#> "in": [
#> "5UNdi",
#> "crH31"
#> ]
#> }
#> }
#> ]
#> }