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
template struct adl_serializer { static void to_json(json& j, const T& value) { // calls the "to_json" method in T's namespace }
static void from_json(const json& j, T& value) { // same thing, but with the "from_json" method }
};
The text was updated successfully, but these errors were encountered:
In order to asses your issue, we need the following information:
What is the issue you have?
Please describe the steps to reproduce the issue. Can you provide a small but working code example?
What is the expected behavior?
And what is the actual behavior instead?
Which compiler and operating system are you using? Is it a supported compiler?
Did you use a released version of the library or the version from the develop branch?
develop
If you experience a compilation error: can you compile and run the unit tests?
Sorry, something went wrong.
You specialize adl_serializer in nlohmann namespase for your types. Example is here https://github.com/nlohmann/json/blob/develop/README.md#arbitrary-types-conversions.
@wuvalue Do you need further assistance?
No branches or pull requests
template
struct adl_serializer {
static void to_json(json& j, const T& value) {
// calls the "to_json" method in T's namespace
}
};
The text was updated successfully, but these errors were encountered: