I have defined a Quote class like this:
public class Quote
{
public double Price { get; set; }
public string Symbol { get; set; }
}
The following JSON is returned by a Web API rest endpoint and does not include an explicit symbol field. The symbols are the named objects, e.g. AAPL, GOOG, FB:
{
"AAPL": {
"price": 205
},
"GOOG": {
"price": 1230.38
},
"FB": {
"price": 178.41
}
}
What is the best way to convert this JSON to a List<Quote>?

symbolin you json?symbolcomes from to assign it toSymbolproperty in your class while deserializationQuote.Symbolis the stock ticker, e.g.AAPLGOOGFBQuoteclass?