// For complete examples and data files, please go to https://github.com/groupdocsassembly/GroupDocs_Assembly_NET
/// <summary>
/// Deserializes the json file, loop over the deserialized data
/// </summary>
/// <returns>Returns deserialized data</returns>
public static IEnumerable<BusinessObjects.Product> GetProductsDataJson()
{
string rawData = File.ReadAllText(jsonFile);
BusinessObjects.Customer[] customers = JsonConvert.DeserializeObject<BusinessObjects.Customer[]>(rawData);
foreach (BusinessObjects.Customer customer in customers)
{
foreach (BusinessObjects.Order order in customer.Order)
yield return order.Product;
}
}