Below is the hubspot api response in c# format obtained from json2csharp
public class HubSpotResponse
{
public string status { get; set; }
public string message { get; set; }
public string correlationId { get; set; }
public List<string> invalidEmails { get; set; }
public List<FailureMessage> failureMessages { get; set; }
public string requestId { get; set; }
public class FailureMessage
{
public int index { get; set; }
public Error error { get; set; }
}
public class Error
{
public string status { get; set; }
public string message { get; set; }
}
}
@pmanca Yes Json.NET is a very good tool but are the .NET object classes for the HubSpot items (ie Contacts) already built somewhere so that we can use Json.NET to serialize/deserialize directly to strongly typed objects - without having to create the required object classes ourselves?
Thanks for your help!
@cbarnes199 Hey there is a popular class built out that you can read up on and leverage to do this. It is called Json.NET. Here is a link to the documentation on it. Let me know if this helps or not. http://www.newtonsoft.com/json