Skip to content

Expose a binding for simdjson #61577

Closed as not planned
Closed as not planned

Description

@mcollina

I think we should consider exposing an "Extended JSON" parser (and possibly stringifier) to address specifically two issues:

  1. protecting against prototype pollutions attacks - essentially embedding what secure-json-parse does.
  2. provide better support for BigInt

Possibly, there are more ideas of features we might need.

We could also pursue this as a n-api addon.

What do you think?

cc @nodejs/tsc @lemire

Activity

  1. RafaelGSS commented on Jan 30, 2026

    @RafaelGSS
    Member

    I'm +1 as long as simdjson API follows the semver - I'm sure this is the case, right @lemire?

  2. ronag commented on Jan 30, 2026

    @ronag
    Member

    Any idea of the relative performance? Also I think simdjson would make it possible to do partial and/or streaming decodes (for huge JSON objects)?

  3. lemire commented on Jan 30, 2026

    @lemire
    Member

    I'm +1 as long as simdjson API follows the semver

    Yes. :-)

    Any idea of the relative performance?

    The main bottleneck when parsing JSON in JavaScript is the construction of the JavaScript instances (objects, arrays, and so forth). If you can skip that somehow, you win big.

  4. github-actions commented on Jul 20, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions