Пример:

Conditions.cs
[Serializable]
[XmlRoot("conditions")]
public class Conditions
{
public Conditions()
{
AnyAttr = new List();
Items = new List();
}
[XmlElement("and", typeof(AndCondition))]
[XmlElement("not", typeof(NotCondition))]
[XmlElement("or", typeof(OrCondition))]
public List Items { get; set; }
[XmlAnyAttribute]
public List AnyAttr { get; set; }
}
Json для десериализации
'items': [
{
'items': [
{
'q': {
'id': null,
'weight': 0,
'name': 'Original Search',
'originalSearch': true,
'value': 'murder'
},
'dWim': true,
'qLang': 'NaturalAnd',
'parseAlgorithm': false,
'suggestCorrections': true,
'autoCorrection': false,
'fuzzyMath': false,
'fuzzyMatch': false,
'includeFrenchUri': false,
'termUnitParse': null,
'suggestionCount': '1',
'synonyms': false,
'equivs': true,
'highlight': true,
'anyAttr': []
}
],
'id': null,
'recallQueryToken': null
}
],
'anyAttr': []
}";
Подробнее здесь: https://stackoverflow.com/questions/791 ... net-object