Hi,
I am wondering about the JSON implementation in the API.
None of the JSON responses have a key - value
but just values
I am looking into changing from XML to JSON to increase performance but no deserializers for C# can handle the response
for example response for priorities look something like this
{"response":{"uri":"/api/json/getFieldList","result":{"fieldList":{"3":"Medium","2":"Normal","4":"High","1":"Low"},"status":"Success","statuscode":"200"}}}
If i would convert this to a class it would look something like this
public class FieldList
{
public string __invalid_name__3 { get; set; }
public string __invalid_name__2 { get; set; }
public string __invalid_name__4 { get; set; }
public string __invalid_name__1 { get; set; }
}
public class Result
{
public FieldList fieldList { get; set; }
public string status { get; set; }
public string statuscode { get; set; }
}
public class Response
{
public string uri { get; set; }
public Result result { get; set; }
}
Do you have any reference for the development model or some example that i can use as a starting point,
Or do i need to create my own parsing framework to handle the response string ?
Best regards,
Valdi Hafdal
URL :
http://www.valinc.net
[Add-in for Support Center Plus]
[Add-in for Service Desk Plus]