-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
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
json to std::map #1487
Comments
The library already supports the STL std::map interface, however you might need to write your own post-processor that iterates over the object and produces a true std::map. |
|
I don't understand, the error is not about conversion from JSON to map, it seems to me that you're compiling with Replace |
Théo is right. There is indeed an overload of |
Instead of |
If the OP is trying to load a json file, don't they need std::ifstream i("default.json");
i >> j; |
@janekaldo Do you need further support or can I close this issue? |
hey
this is my current code. saving works perfectly but loading doesnt. compiler gives the following erros:
The text was updated successfully, but these errors were encountered: