
Код: Выделить всё
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
var item = JObject.Parse(@"
{
'date': '2024-12-27',
'availability': {
'7:00': [],
'8:00': [],
'9:00': [],
'10:00': [
{
'id': 2583
}
]
}
}
");
var availability = item.SelectTokens("$.availability.*[?(length()==0)]").ToList();
Спасибо!
Подробнее здесь: https://stackoverflow.com/questions/792 ... -single-ob