-2
Newtonsoft.Json.Jsonserializationexception: 'Not possible deserialize the current JSON matrix (e.g., [1,2,3]) in type' Json.Pulse 'because the type requires a JSON object (e.g., {"name": "value"}) to deserialize correctly.
class Program
{
int i1, i2, i3;
static void Main(string[] args)
{
string aux = @"https://api.monday.com:443/v1/boards/251379198/pulses.json?page=7&per_page=25&api_key=39eef5804de940f37d69b3d750c81212";
var requisicaoWeb = WebRequest.CreateHttp(aux);
requisicaoWeb.Method = "GET";
requisicaoWeb.UserAgent = "RequisicaoWebDemo";
var resposta = requisicaoWeb.GetResponse();
var streamDados = resposta.GetResponseStream();
StreamReader reader = new StreamReader(streamDados);
object objResponse = reader.ReadToEnd();
var post = JsonConvert.DeserializeObject<pulse>``(objResponse.ToString());
Console.WriteLine(post);
Console.ReadLine();
}
}
public class pulse
{
public string id;
}
Dude, if you can, transcribe your code to the question
– Tmilitino
Ready I made.
– Guilherme Willahelm