public class HEADER
{
public string APPLICATION-ID { get; set; }
public string RESPONSE-TYPE { get; set; }
public string CUST-ID { get; set; }
public string REQUEST-RECEIVED-TIME { get; set; }
}
public class ERROR
{
public string DESCRIPTION { get; set; }
public string CODE { get; set; }
}
public class JsonObject
{
public HEADER HEADER { get; set; }
public List<ERROR> ERRORS { get; set; }
public string STATUS { get; set; }
}
WebResponse webResponse = request.GetResponse();
using (Stream webStream = webResponse.GetResponseStream())
{
if (webStream != null)
{
using (StreamReader responseReader = new StreamReader(webStream))
{
string response = responseReader.ReadToEnd();
JObject jal =response as JObject;
JsonObject Obj= jal.ToObject<JsonObject>();
}
}
}