// Show options for user to pick what to do with the properties public static bool ShowOptions() { Console.WriteLine("\n What do you like to do with our properties?" + "\n 1) Output all of the neighborhoods in this data list" + "\n 2) Filter out all the neighborhoods that do not have any names" + "\n 3) Remove the Duplicates" + "\n 4) Trying all of the above at once!" + "\n 5) Exit"); string userInput = Console.ReadLine(); // Creating an instance of the Json Serializer Class JsonDeserializer js = new JsonDeserializer(); RootObject rootObject = js.ReadJson(); switch (char.Parse(userInput)) { case '1': var result = js.GetAllNeighborhoods(rootObject); PrintProperties(result); return(true); case '2': var result2 = js.GetFilteredNeighborhoods(js.GetAllNeighborhoods(rootObject)); PrintProperties(result2); return(true); case '3': var result3 = js.GetUniqueNeighborhoods(js.GetFilteredNeighborhoods(js.GetAllNeighborhoods(rootObject))); PrintProperties(result3); return(true); case '4': var result4 = js.AllInOneSingleQuery(); PrintProperties(result4); return(true); case '5': return(false); } return(false); }