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

empty list names #53

Closed
SymbolixAU opened this issue Oct 28, 2019 · 1 comment
Closed

empty list names #53

SymbolixAU opened this issue Oct 28, 2019 · 1 comment

Comments

@SymbolixAU
Copy link
Owner

@SymbolixAU SymbolixAU commented Oct 28, 2019

x <- list(1, x = 2)
to_json( x )
# {"1":[1.0],"x":[2.0]}
## should be
# '{"":["a"],"b":["b"]}'

names( from_json( to_json( x ) ) )
# [1] "1" "x"

names( from_json( '{"":["a"],"b":["b"]}') )
# [1] ""  "b"
@SymbolixAU
Copy link
Owner Author

@SymbolixAU SymbolixAU commented Oct 28, 2019

x <- list(1, x = 2)
to_json( x )
# {"":[1.0],"x":[2.0]}

names( from_json( to_json( x ) ) )
# [1] "" "x"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.