I am trying to deserialize JSON with dots in the property names into a key-value format. I am using the inbuilt ASP.NET MVC model binding. It seems to be interpreting the do
I came here looking for a way to deserialize a json string into a model, and while the question here is solved though the MVC framework, it did not solve my issue.
Given a json string of
{
"Property.Something": "The value"
}
I found that using the [JsonProperty] attribute I could deserialize the string into my model like this:
public class JsonModel
{
[JsonProperty(PropertyName = "Property.Something")]
public string PropertySomething {get; set;}
}