pxweb_query_as_json: Convert a 'pxweb_query' object to a 'json' string

Description Usage Arguments Examples

View source: R/pxweb_query.R

Description

Convert a pxweb_query object to a json string

Usage

1

Arguments

pxq

a pxweb_query object.

...

further argument to jsonlite::toJSON().

Examples

1
2
3
4
json_query <- file.path(system.file(package = "pxweb"), 
                        "extdata", "examples", "json_query_example.json")
pxq <- pxweb_query(json_query)
json <- pxweb_query_as_json(pxq, pretty = TRUE)

pxweb documentation built on Oct. 10, 2021, 1:06 a.m.