Open HaroldTexas opened 2 years ago
When generating c# classes the class name for OpenCloses is being truncated to OpenClos.
{"items":[{"stops":[{"serviceableStopInfo":{"timeWindowDetails":{"openCloses":[{"startTimeOfDay":"","endTimeOfDay":""}]}}}]}]}
// Root myDeserializedClass = JsonConvert.DeserializeObject(myJsonResponse); public class OpenClos { public string startTimeOfDay { get; set; } public string endTimeOfDay { get; set; } }
Ahh because It's thinking that OpenCloses is plural and trying to make it singular. I'll think of a fix for that
When generating c# classes the class name for OpenCloses is being truncated to OpenClos.
{"items":[{"stops":[{"serviceableStopInfo":{"timeWindowDetails":{"openCloses":[{"startTimeOfDay":"","endTimeOfDay":""}]}}}]}]}
// Root myDeserializedClass = JsonConvert.DeserializeObject(myJsonResponse);
public class OpenClos
{
public string startTimeOfDay { get; set; }
public string endTimeOfDay { get; set; }
}