Parse time_periods to json
parse_tojson_time_periods.Rd
Create a json query sub-string based on time periods constraints
Examples
parse_tojson_time_periods(c("2023|W25", "2024|W12"))
#> [1] " {\n \"timePeriods\": {\n \"in\": [\n {\n \"period\": \"2023\",\n \"code\": \"W25\"\n },\n {\n \"period\": \"2024\",\n \"code\": \"W12\"\n }\n ]\n }\n }"