powered by
pxweb_query
json
Convert a pxweb_query object to a json string
pxweb_query_as_json(pxq, ...)
a pxweb_query object.
further argument to jsonlite::toJSON().
jsonlite::toJSON()
pxweb_query, pxweb_query_as_rcode
pxweb_query_as_rcode
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)
Run the code above in your browser using DataLab