Skip to content

BOM not skipped when using json:parse(iterator) #602

Description

@jhayes-dev

The byte-order mark is not being skipped when I use json:parse(iterator) interface for example:
nlohmann::json::parse(static_cast<const char *>(buffer), static_cast<const char *>(buffer) + nbytes)

It looks like the json::parse(stream) interface does skip the BOM.

Here is a quick fix that seems to work for me:
json.txt

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions