powered by
Low level JQ API. First create a program using a `query` and `flags` and then feed pieces of data.
jqr_new(query, flags = jq_flags())jqr_feed(jqr_program, json, unlist = TRUE, finalize = FALSE)
jqr_feed(jqr_program, json, unlist = TRUE, finalize = FALSE)
string with a valid jq program
See jq_flags
jq_flags
object returned by [jqr_new]
character vector with json data. If the JSON object is incomplete, you must set `finalize` to `FALSE` otherwise you get an error.
if `TRUE` returns a single character vector with all output for each each string in `json` input
completes the parsing and verifies that the JSON string is valid. Set this to `TRUE` when feeding the final piece of data.
program <- jqr_new(".[]") jqr_feed(program, c("[123, 456]", "[77, 88, 99]")) jqr_feed(program, c("[41, 234]")) jqr_feed(program, "", finalize = TRUE)
Run the code above in your browser using DataLab