using Newtonsoft.Json.Linq;
public static void Main()
string response = "[{\"pageNumber\": \"11\",\"totalPages\": \"10\",\"inventory\": []}]";
JArray jo = JArray.Parse(response);
if ((int)((JArray)((JObject)jo[0]).Property("inventory").Value).Count == 0) {
Console.WriteLine (new JObject().ToString());
Console.WriteLine (response.ToString());