Skip to content

What should format_json_list return for NA and NULL? #27

@mgirlich

Description

@mgirlich
  • 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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions