I Have a JSON with this values
{"interface":"ALL",
"dv":"1",
"alarms":[{"Id":0,
"Type":"URL",
"Trigger":"facebook",
"Output":"video"},
{"Id":1,
"Type":"URL",
"Trigger":"twitter",
"Output":"video"},
{"Id":2,
"Type":"URL",
"Trigger":"ebay",
"Output":"video"}
]}
And i would like parse this information to mi C# Code
I do this for Strings tags and works ok
JObject obj = JObject.Parse(json);
String value =(String) obj["dv"];
but i have an error for tag Array alarms. I've tried with:
Array value = null;
value =(Array) obj["alarm"];
but i get an error (Message=Can not convert Array to byte array. Source=Newtonsoft.Json).