Skip to content

Program calls abort function #769

Description

@tomasMizera

Hi, I am facing a problem while loading a .json file. I do it this way:

#include "json.hpp"
// for convenience
using json = nlohmann::json;

int main() {
	std::ifstream pah("eth_frame.json");
	json jFile;
	jFile << pah;
	cout << jFile["pi"];
....

line jFile << pah crashes and program ends with error, saying that it called abort() function.

When I try to debug, this problem occurs:
Unhandled exception at 0x753DB832 in JSONcpp.exe: Microsoft C++ exception: nlohmann::detail::parse_error at memory location 0x0133DE74.

In file json.hpp.
What am I doing wrong? Thanks in advance for your help! :)
btw, I use VS2017
error:
http://prntscr.com/gtzmwp

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions