We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a series objects which implements "json toJson() {}"
json j json pixels_json j["camera"] = std::move(camera_->toJson()) j["pixels"] = std::move(pixels_json) for (auto& pixel : pixels) { pixels_json.push_back(std::move(pixel->toJson())); }
The snippet of codes raises a Segmentation fault. I doubt whether json implements JSON object parser correctly because a json parser should parse
json
Apparently, you cannot do it and the documentation does not event mention about it.
The text was updated successfully, but these errors were encountered:
@nlohmann
Sorry, something went wrong.
The JSON parser is correct. And in your example, it is not even called.
Can you please provide code for the toJson() function you are calling? What is the stack trace when the segmentation fault happens?
toJson()
@nlohmann get your commet. I will check my code carefully but I do recommend to add such usage in our documentation
Which usage do you mean?
No branches or pull requests
I have a series objects which implements "json toJson() {}"
The snippet of codes raises a Segmentation fault. I doubt whether
json
implements JSON object parser correctly because a json parser should parseApparently, you cannot do it and the documentation does not event mention about it.
The text was updated successfully, but these errors were encountered: