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
Hello! I've had issue with TryDeserialize assigning default values to fields marked with FormerlySerializedAs.
I have a following json structure:
"[ { "public_name": "Name" }, { "public_name": "Name2" } ]"
Then i use struct type to pass into Deserialize:
[Serializable] public struct UserDTO { [FormerlySerializedAs("public_name")] public string publicName; }
and the wrapper i'm using is from example StringSerializationAPI in readme:
StringSerializationAPI
StringSerializationAPI.Deserialize(typeof(UserDTO[]), jsonString)
However, on the other end i get array with default values
publicName = {string} null
Do i have to create fsDirectConverter for that?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello!
I've had issue with TryDeserialize assigning default values to fields marked with FormerlySerializedAs.
I have a following json structure:
Then i use struct type to pass into Deserialize:
and the wrapper i'm using is from example
StringSerializationAPI
in readme:StringSerializationAPI.Deserialize(typeof(UserDTO[]), jsonString)
However, on the other end i get array with default values
Do i have to create fsDirectConverter for that?
The text was updated successfully, but these errors were encountered: