using Newtonsoft.Json.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
public string Categories {get;set;}
public static void Main()
dynamic Product = new JObject();
Product.Categories = "product1";
Product._Id = "__product__";
Product.ProductName = "Elbow Grease";
Product.StockCount = 9000;
Product.StockValue = 44100;
Product.Tags = new JArray("Real", "OnSale");
Console.WriteLine(ex.Message);
public static void Print(JObject jobject){
Console.WriteLine(jobject.ToString());
public static void PrintTags (JObject jobject){
if(jobject.GetValue("Tags").HasValues){
Console.WriteLine(ex.Message);