using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public class ProgramcodeCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class TargetskillgroupCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class CustomeridCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class EstimatedwaittimeCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class CallingresssiteCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class LrscallflagCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class LanguagecodeCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public string value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public string value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public string value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class DeclarationCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class LegalnoticeCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public string value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class PrinquiryCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public string value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public class RecerttypeCdf
public int fieldId { get; set; }
public string key { get; set; }
public string name { get; set; }
public object value { get; set; }
public string type { get; set; }
public bool encrypted { get; set; }
public bool exportable { get; set; }
public bool readOnly { get; set; }
public int order { get; set; }
public ProgramcodeCdf programcode_cdf { get; set; }
public TargetskillgroupCdf targetskillgroup_cdf { get; set; }
public CustomeridCdf customerid_cdf { get; set; }
public CaseCdf case_cdf { get; set; }
public XferfromCdf xferfrom_cdf { get; set; }
public EstimatedwaittimeCdf estimatedwaittime_cdf { get; set; }
public CallingresssiteCdf callingresssite_cdf { get; set; }
public LrscallflagCdf lrscallflag_cdf { get; set; }
public LanguagecodeCdf languagecode_cdf { get; set; }
public ProgramCdf program_cdf { get; set; }
public AppnumCdf appnum_cdf { get; set; }
public FnameCdf fname_cdf { get; set; }
public LnameCdf lname_cdf { get; set; }
public AppdateCdf appdate_cdf { get; set; }
public CasenumCdf casenum_cdf { get; set; }
public GrsarCdf grsar_cdf { get; set; }
public McsarCdf mcsar_cdf { get; set; }
public FssarCdf fssar_cdf { get; set; }
public CwsarCdf cwsar_cdf { get; set; }
public DeclarationCdf declaration_cdf { get; set; }
public LegalnoticeCdf legalnotice_cdf { get; set; }
public PrtypeCdf prtype_cdf { get; set; }
public PrinquiryCdf prinquiry_cdf { get; set; }
public RecerttypeCdf recerttype_cdf { get; set; }
public static void Main()
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);
""key"": ""programcode_cdf"",
""name"": ""Program Code"",
""targetskillgroup_cdf"": {
""key"": ""targetskillgroup_cdf"",
""name"": ""Target Skill Group"",
""key"": ""customerid_cdf"",
""name"": ""Customer ID"",
""key"": ""xferfrom_cdf"",
""estimatedwaittime_cdf"": {
""key"": ""estimatedwaittime_cdf"",
""name"": ""Estimated Wait Time"",
""callingresssite_cdf"": {
""key"": ""callingresssite_cdf"",
""name"": ""Call Ingress Site"",
""key"": ""lrscallflag_cdf"",
""name"": ""LRS Call Flag"",
""key"": ""languagecode_cdf"",
""name"": ""Language Code"",
""key"": ""program_cdf"",
""value"": ""First Name"",
""value"": ""Last Name"",
""key"": ""appdate_cdf"",
""key"": ""casenum_cdf"",
""name"": ""Case Number SAR"",
""name"": ""General Relief SAR"",
""name"": ""MediCal SAR"",
""name"": ""CalFresh SAR"",
""name"": ""CalWorks SAR"",
""key"": ""declaration_cdf"",
""name"": ""Declaration SAR"",
""key"": ""legalnotice_cdf"",
""name"": ""LegalNotice SAR"",
""value"": ""Re-Evaluation"",
""key"": ""prinquiry_cdf"",
""value"": ""Incomplete"",
""key"": ""recerttype_cdf"",
""name"": ""Recert Type"",
using (var sr = new StringReader(responseJSON))
using (var jr = new JsonTextReader(sr))
var serial = new JsonSerializer();
serial.Formatting = Formatting.Indented;
var obj = serial.Deserialize<RootObject>(jr);
var reserializedJSON = JsonConvert.SerializeObject(obj, Formatting.Indented);
Console.WriteLine("Re-serialized JSON: ");
Console.WriteLine(reserializedJSON);