Skip to content
New issue

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

Support deserializing string to numeric property #16059

Closed
MikeAlhayek opened this issue May 14, 2024 · 0 comments · Fixed by #16060
Closed

Support deserializing string to numeric property #16059

MikeAlhayek opened this issue May 14, 2024 · 0 comments · Fixed by #16060
Labels
Milestone

Comments

@MikeAlhayek
Copy link
Member

MikeAlhayek commented May 14, 2024

Previously using Newtonsoft, we ere able to deserialize a string from a string to numeric. In other words the following two json worked

{"name":"One","value":"1","Weight":1}
{"name":"One","value":"1","Weight":"1"}

when deserializing to

public sealed class CustomListValueOption : ListValueOption
{
    public string Name { get; set; }

    public string Value { get; set; }

    public double? Weight { get; set; }
}

This no longer works after converting to using System Json Text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant