ropensci / jqr

R interface to jq
https://docs.ropensci.org/jqr
Other
143 stars 13 forks source link

jq() should be able to take `json` as an input type? #62

Closed cboettig closed 6 years ago

cboettig commented 6 years ago

If you have a json object (i.e. from jsonlite::toJSON) you currently have to coerce it to a string with as.character before you can call jqr::jq on it. Seems like jqr should be able to work with json class objects directly (i.e. do that coercion to string internally, which I think is just hacking off the class since it's really already a string)

sckott commented 6 years ago

true, good point.