New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in toJSON with lists containing vectors of length zero #13
Comments
Thanks. I see the problem and I'll think about how best to fix it. |
This should be fixed now in the github source. We'll see if it breaks anything before pushing it onto CRAN. Thanks. |
I think problem still persists. For instance:
produces:
Which is invalid json. I would expect:
Other than this, excellent package. |
FWIW this only affects numeric vectors:
(aside: some whitespace is emitted within the brackets for character vectors; not a showstopper but it'd be nice if empty vectors were handled consistently) |
@yihui and I are seeing the following behavior:
This is because
unlist
is used to collect results, but because they
element is empty, it is dropped and then the element1
is recycled.The text was updated successfully, but these errors were encountered: