I'm trying to read the following json file using json.net, but I cant seem to make it work
{
"rootpath": "/dev/dvb/adapter1",
"frontends": {
"DVB-C #2": {
"powersave": false,
"enabled": false,
"priority": 0,
"displayname": "Sony CXD2820R (DVB-C) : DVB-C #1",
"networks": [
],
"type": "DVB-C"
},
"DVB-T #1": {
"powersave": false,
"enabled": true,
"priority": 0,
"displayname": "Sony CXD2820R (DVB-T/T2) : DVB-T #0",
"networks": [
"5225c9f02c93f1cbe9ae35e5bbe6007f"
],
"type": "DVB-T"
},
"DVB-S #0": {
"powersave": false,
"enabled": false,
"priority": 0,
"displayname": "Conexant CX24116/CX24118 : DVB-S #0",
"networks": [
],
"type": "DVB-S",
"satconf": {
"type": "simple",
"diseqc_repeats": 0,
"lnb_poweroff": false,
"elements": [
{
"enabled": false,
"priority": 0,
"networks": [
],
"lnb_type": "Universal",
"uuid": "2db1bb45f2ac9ae5caa63367674caafb",
"lnb_conf": {
}
}
],
"uuid": "94833aabc581ce96d75bb6884a05f20a"
}
}
}
}
I have tried to use http://json2csharp.com/ to create the c# code but this fails to work. I get the feeling the json is invalid on the lines that start "DVB-C #2", "DVB-T #1" and "DVB-S #0".
I'm using this command to attempt Deserialize the string "JsonConvert.DeserializeObject(json)"
Can anyone verify if it can be done?
p.s. the json is created by a product called tvheadend.
Regards
Steve