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

What should format_json_list return for NA and NULL? #27

Open
mgirlich opened this issue Feb 3, 2020 · 0 comments
Open

What should format_json_list return for NA and NULL? #27

mgirlich opened this issue Feb 3, 2020 · 0 comments

Comments

@mgirlich
Copy link
Owner

mgirlich commented Feb 3, 2020

  • no special treatment and simply let format_json() do its job.

  • extra argument?

  • NA: is unlikely to occur in a list. Maybe from parse_json_vector()?

  • NULL: treated as the missing value in lists

format_json_list(list(list(a = 1), list(a = 1, b = 2), NULL, NA))
#> {"a":[1]} {"a":[1],"b":[2]} {} [null]
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