I have a sample Json
[{"_2":["HR Data","Reformed (Master File)"]}]
and I am trying to deserialize it into below model
public class ExploreCriteria
{
public Dictionary<String, List<String>> Explore { get; set; }
}
this is what I have tried so far
ExploreCriteria Explore = new ExploreCriteria();
Explore = JsonConvert.DeserializeObject<ExploreCriteria>(JsonStr);
but it says
Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
'DataModels.ExploreCriteria' because the type requires a JSON object
(e.g. {"name":"value"}) to deserialize correctly.