Skip to content

toJSON() enters infinite recursion for labelled vectors #424

@gadenbuie

Description

@gadenbuie

Reported by a user in rstudio/htmltools#398

A very minimal reprex:

labelled::labelled(1:3) |> jsonlite::toJSON()
#> Error: C stack usage  7955752 is too close to the limit

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