Skip to content

read in .json file yields strange sizes #487

Description

@CDitzel

I am trying to read in an .json file into an json object via the overloaded >> operator

I can also write it to another .json file with << which reproduces the same file, as expected.

however, when I try to find out about the size of the json-container, it yields 3, although my file is quite big

json input; i >> input; std::cout << input.size() << input << std::endl;

it gives the correct content but the size is obviously wrong

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions