Robustness check in auto-execution, so a pipeline will only execute jq if the end-object inherits from jqr.
Therefore, e.g.
json %>% keys %>% str
will allow you to inspect the jqr object. Before this would give an error.
(json %>% keys) %>% str
This, however, will execute (since its a nested pipeline) and str will inspect the resulting json.
Nothing special about str here, it's just an example.
In addition:
I suggest using ... in the generic jq to construct low-level queries (combined with " | "). This will make long queries easier to pass in, but more importantly make a seamless connection between low-level and high-level calls:
This PR has the following improvement:
jqr
.Therefore, e.g.
will allow you to inspect the
jqr
object. Before this would give an error.This, however, will execute (since its a nested pipeline) and
str
will inspect the resultingjson
. Nothing special aboutstr
here, it's just an example.In addition: I suggest using
...
in the genericjq
to construct low-level queries (combined with" | "
). This will make long queries easier to pass in, but more importantly make a seamless connection between low-level and high-level calls:This example, although not that long query, shows how one can use the
...
: