Closed ramiromagno closed 2 years ago
Yeah sorry about that!! These are currently jnumber
, jstring
, jlogical
. I can't remember whether json_*
was the "new" pattern or the "old" one and exactly what happened, but I will track it down - thanks for reporting!
btw: I would find it convenient to have jnumber
split into jinteger
and jdouble
. What do you think?
I think that's a good idea! The implementation isn't front of mind at present, but I like the idea of being declarative / type-safe. IIRC the reason jnumber
was implemented is because JSON itself doesn't have a distinction between integer / double.
https://github.com/colearendt/tidyjson/blob/7205b9f3ec6b463185dddcb4a6aee6278e9a17b1/README.Rmd#L87-L89