using Newtonsoft.Json.Linq;
public static void Main()
string sb = " {\"properties\": {" +
" \"description\": \"Defines type of object being represented\"," +
" \"type\": \"string\"," +
" \"employeeFirstName\": {" +
" \"title\": \"First Name\"," +
" \"description\": \"Employee first name\"," +
" \"type\": \"string\"" +
" \"employeeLastName\": {" +
" \"title\": \"Last Name\"," +
" \"description\": \"Employee Last name\"," +
" \"type\": \"string\"" +
" \"title\": \"Address\"," +
" \"description\": \"Employee present address \"," +
" \"$ref\": \"#/definitions/address\"" +
var jsonObject = JObject.Parse(sb);
var props = jsonObject.GetValue("properties");
foreach (var prop in props.Values<JProperty>())
Console.WriteLine("Handling type: " + prop.Value);
case "employeeFirstName":
Console.WriteLine("employeeFirstName: " + prop.Value);