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

View source: R/pxweb_query.R

pxweb_query_as_jsonR Documentation

Convert a pxweb_query object to a json string

Description

Convert a pxweb_query object to a json string

Usage

pxweb_query_as_json(pxq, ...)

Arguments

pxq

a pxweb_query object.

...

further argument to jsonlite::toJSON().

See Also

pxweb_query, pxweb_query_as_rcode

Examples

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 May 29, 2024, 2:28 a.m.