Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
We can do better than using a single JSON Pointer for
query=.If you know exactly what values you want to pull into R, you could do the following:
But that's more tedious than just parsing the whole thing followed by so some post-parse-processing (which you'd have to do clean up the
NULLs anyways).It's a total waste of potential.
We can do this instead:
This would dramatically increase the amount of work that can be done before any R objects materialize and minimize the amount of post-parse-processing a user might have to do in R (and potentially eliminate it for some sane and stable JSON schemata).
The code hygiene and performance benefits are absolutely worth it.
json=and are applied in a zip-like fashionListOf<CharacterVector>) like the example above provides a way to apply multiple queries to each element