Skip to content
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

Partially named lists don't recreate correctly #410

Open
statasaurus opened this issue Feb 1, 2023 · 0 comments
Open

Partially named lists don't recreate correctly #410

statasaurus opened this issue Feb 1, 2023 · 0 comments

Comments

@statasaurus
Copy link

If doesn't have all elements named, numbers get assigned. But when I read the list back in it keeps the numbers as the name.

list(a= 1 , 5, 6,  3) %>% toJSON()

has the following output
{"a":[1],"2":[5],"3":[6],"4":[3]}
But when the output is read back into R with fromJSON() to output is as follows:
image
I would like to be able to go from a partially named list to JSON and then back to the same partially named list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant