H
H
Horoko2015-12-28 20:13:27
JSON
Horoko, 2015-12-28 20:13:27

How to deserialize using newtonsoft json model?

Actually, the whole point is that in the response, for example, a field with the name some.field.dot-net comes, and for deserialization it is required that the variables in the model have the same name as the json field. And c# doesn't allow dots and dashes in variable names.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melz, 2015-12-28
@Horoko

jsonproperty?

[JsonProperty("some.field.dot-net")]
public string SomeFieldDotNet { get; set; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question