Skip to content

The maximum number of byte files that ArrayEach supports #257

Description

@xhyuaner

Hello, can you tell me the maximum number of byte files that ArrayEach supports? I have a 1GB json file that uses ArrayEach to parse and report an error "offset: 5, err: Value is array, but can't find closing ']' symbol". Thank you.

Activity

  1. buger commented on Jul 28, 2026

    @buger
    Owner

    Resolved in v1.5.0 — ArrayEach has no intrinsic size limit; the error you saw ('can't find closing ]') indicates truncated/malformed input. For files too large to load into memory, use the new ReaderParser (NewReaderParser(r io.Reader)) which streams the data in 64KB chunks. See: https://github.com/buger/jsonparser/releases

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions