Skip to contents

Create an example json query string for use in examples and tests

Usage

example_json_query()

Value

String containing an example json query

Examples

example_json_query() |> cat()
#> {
#> "criteria": {
#>   "and": [
#>     {
#>       "timePeriods": {
#>         "in": [
#>           {
#>             "period": "2024",
#>             "code": "W23"
#>           }
#>         ]
#>       }
#>     },
#>     {
#>       "or": [
#>         {
#>           "and": [
#>         {
#>           "geographicLevels": {
#>             "eq": "REG"
#>           }
#>         },
#>     {
#>       "locations": {
#>         "in": [
#>           {
#>             "level": "REG",
#>             "code": "E12000001"
#>           }
#>         ]
#>       }
#>     }
#>   ]
#>   },
#>         {
#>           "and": [
#>         {
#>           "geographicLevels": {
#>             "eq": "REG"
#>           }
#>         },
#>     {
#>       "locations": {
#>         "in": [
#>           {
#>             "level": "REG",
#>             "code": "E12000002"
#>           }
#>         ]
#>       }
#>     }
#>   ]
#>   }
#>     ]
#>   },
#> {
#> "and": [
#>     {
#>       "filters": {
#>         "in": [
#>           "qGJjG"
#>         ]
#>       }
#>     },
#>     {
#>       "filters": {
#>         "in": [
#>           "cZO31",
#>           "jgoAM"
#>         ]
#>       }
#>     },
#>     {
#>       "filters": {
#>         "in": [
#>           "Poqeb",
#>           "dPE0Z"
#>         ]
#>       }
#>     },
#>     {
#>       "filters": {
#>         "in": [
#>           "AOhGK"
#>         ]
#>       }
#>     },
#>     {
#>       "filters": {
#>         "in": [
#>           "9Ru4v"
#>         ]
#>       }
#>     }
#> ]
#> }
#>   ]
#> },
#> "indicators": [
#>   "tj0Em"
#> ],
#> "debug": false,
#> "page": 1,
#> "pageSize": 1000
#> }