Pulling rest api, I get an array of objects each of which has a property-array filters
"filters": [ { "filterType": "PRICE_FILTER", "minPrice":"0.01000000", "maxPrice":"10000000.00000000", "tickSize":"0.01000000" }, { "filterType":"LOT_SIZE", "minQty":"0.00001000", "maxQty":"10000000.00000000", "stepSize":"0.00001000" }, { "filterType":"MIN_NOTIONAL", "minNotional":"10.00000000" } ] Is it even possible to make deserialization into classes, and is it possible to bring all these properties to a class one level higher instead of filters themselves. For parsing I use JObject.Parse (string)
public class ExchangeInfo { [JsonProperty("timezone")] public string Timezone { get; set; } [JsonProperty("serverTime")] public long ServerTime { get; set; } [JsonProperty("rateLimits")] public IEnumerable<LimitInfo> Limits { get; set; } [JsonProperty("symbols")] public IEnumerable<SymbolInfo> Symbols { get; set; } } public class LimitInfo { [JsonProperty("rateLimitType")] public string RateLimitType { get; set; } // REQUESTS [JsonProperty("interval")] public string Interval { get; set; } // MINUTE, SECOND, DAY [JsonProperty("limit")] public int Limit { get; set; } } public class SymbolInfo { [JsonProperty("symbol")] public string Symbol { get; set; } [JsonProperty("status")] public string Status { get; set; } [JsonProperty("baseAsset")] public string BaseAsset { get; set; } [JsonProperty("baseAssetPrecision")] public int BaseAssetPrecision { get; set; } [JsonProperty("quoteAsset")] public string QuoteAsset { get; set; } [JsonProperty("quotePrecision")] public int QuotePrecision { get; set; } [JsonProperty("orderTypes")] public IEnumerable<string> OrderTypes { get; set; } [JsonProperty("icebergAllowed")] public bool IcebergAllowed { get; set; } // Что должно быть здесь? [JsonProperty("filters")] public IEnumerable<string> Filters { get; set; } } Link to api https://www.binance.com/api/v1/exchangeInfo I need the SymbolInfo object to correctly fill the Filters property
list<Filter> Filters. By the way, json.net no matter which letter indicates the property in the class, so all your JsonProperty is superfluous (unless the name itself is of course different). - EvgeniyZ