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
When serializing out a map that uses an enum as the key, the resulting map adds extra escaped quotes around the key name.
Example...
enum class MyEnum { Value0, Value1 }; JSONCONS_ENUM_TRAITS(MyEnum, Value0, Value1) std::map<MyEnum, int> my_map; my_map[MyEnum::Value0] = 5; my_map[MyEnum::Value1] = 10;
When serializing my_map it results in the following...
my_map
... "my_map": { "\"Value0\"": 5, "\"Value1\"": 10 } ...
I would instead expect the output to be
... "my_map": { "Value0": 5, "Value1": 10 } ...
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, fixed on master.
Sorry, something went wrong.
No branches or pull requests
When serializing out a map that uses an enum as the key, the resulting map adds extra escaped quotes around the key name.
Example...
When serializing
my_map
it results in the following...I would instead expect the output to be
The text was updated successfully, but these errors were encountered: