You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be a rare usecase and I have workaround for it, but it would be nice if we could settag container attribute separatly for serialization and deserialization.
To simplify the request, here is a json i would like to deserialize into an enum:
{"struct_type":"A","data":10}
and here is the json that i would like to serialize with the same enum
{"structType":"A","data":10}
and here is my enum definition works only for deserialization:
It might be a rare usecase and I have workaround for it, but it would be nice if we could set
tag
container attribute separatly for serialization and deserialization.To simplify the request, here is a json i would like to deserialize into an enum:
and here is the json that i would like to serialize with the same enum
and here is my enum definition works only for deserialization:
my workaround is to write a custom serializater, something like this:
My suggestion is to have a specific tag for each of serialization and deserialization.
The text was updated successfully, but these errors were encountered: