using System.Collections.Generic;
public static void Main()
string myJsonResponse = "{'panicForms': [{ 'name': 'Name', 'description': 'Description', 'title': 'Title', 'Image': '', 'keyboardShortcut': '', 'instructions': 'Instructions', 'submitButtonText': '', 'label': '', 'tooltip': '', 'textColor': 'Black', 'backgroundColor': 'Red', 'textStyle': 'Normal', 'systemTrayEnabled': true, 'fields': [{ 'eventField': 'Name', 'label': 'Full Name','type': 'single selection', 'required': true }, { 'eventField': 'Age', 'label': 'age', 'type': 'single selection', 'required': false } ]}]}";
Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
Console.WriteLine(myDeserializedClass.panicForms.Count);
public string eventField { get; set; }
public string label { get; set; }
public string type { get; set; }
public bool required { get; set; }
public string name { get; set; }
public string description { get; set; }
public string title { get; set; }
public string Image { get; set; }
public string keyboardShortcut { get; set; }
public string instructions { get; set; }
public string submitButtonText { get; set; }
public string label { get; set; }
public string tooltip { get; set; }
public string textColor { get; set; }
public string backgroundColor { get; set; }
public string textStyle { get; set; }
public bool systemTrayEnabled { get; set; }
public List<Field> fields { get; set; }
public List<PanicForm> panicForms { get; set; }