How can we get the value from deserialized list in X ?
Like below in C# i could do this but how can I access the any value in x ? It don't even shows me fields of my list to get access.
Code below gives me an error "The array indexing syntax can only be applied to X array types. Use the SetValue and GetValue methods on managed array types."
defaultException defaultException = JsonConvert::DeserializeObject(response);
Global::Info(strFmt("exception: %1", defaultException.exception.exceptionDetailList[0].exceptionCode));
public class defaultException
{
public KSeF_Exception exception { get; set; }
}
public class KSeF_Exception
{
public string serviceCtx { get; set; }
public string serviceCode { get; set; }
public string serviceName { get; set; }
public string timestamp { get; set;}
public string referenceNumber { get; set; }
public List exceptionDetailList { get; set; }
}
public class exceptionDetailList
{
public int exceptionCode { get; set; }
public string exceptionDescription { get; set; }
}