String was not recognized as a valid DateTime while converting json to objects
I am trying to de-serialize a json object but getting this error, here is my call code. I am not exactly sure what has changed in my code, this use to work just fine before from what I remember. var serializedCriteria = JsonConvert.SerializeObject(criteria, new RawJsonConverter()); var request = new HttpRequestMessage() { RequestUri = new Uri($"{urlBase}/events/search"), Method = HttpMethod.Post, Content = new StringContent(serializedCriteria, Encoding.UTF8, "application/json"), }; var response = client.SendAsync(request, HttpCompletionOption.ResponseHeadersRead).Result; var serializer = new D
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.