-
I have two enum types. And my server has to pack one or more enums into a vector and this vector is then serialized to nlohmann::json I have registered all enums in But when i serialize a vector with an enum, it is serialized with numbers, not the strings with which i registered them Interestingly, when i initialize a dummy variable somewhere at the beginning of the code, something like this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Can you share a minimal working example please? |
Beta Was this translation helpful? Give feedback.
Sorry to bother, it was my mistake with linking.
I connected headers more correctly and used flag
JSON_DisableEnumSerialization
in cmake, and got expected behavior.