Skip to content

toJSON(auto_unbox=TRUE) can generate invalid JSON #71

Closed
@wch

Description

@wch

I just switched Shiny to jsonlite and in some rare test cases ran into this bug. (We previously switched to jsonlite but backed it out for a maintenance release.)

toJSON('foo', auto_unbox=TRUE)
# "foo"

I think it makes sense to special-case this so that it returns ["foo"].

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