I\'m using the API of www.textlocal.in, which returns a JSON formatted object.
JSON
{
\"warnings\":[
{
\"messag
I simulated your problem and made the following changes that worked:
Change the method that deserializes to this:
var a = JsonConvert.DeserializeObject(richTextBox1.Text);
The result of the JSON you receive is not a List
, so it will not work to deserialize to List<>
.
The recipient
property of the messages
class receives values larger than an integer, so it must be transformed into a long like this:
public long recipient { get; set; }
These changes solve your problem.