[Solved] not able to convert json string into c# object , getting error- because the type requires a JSON array


you have 2 variants

  1. Get a root object
Root root = JsonConvert.DeserializeObject<Root>(jsonString);
  1. Get a list
 List<Set1> Set1 = JObject.Parse(jsonString)["Set1"].ToObject<List<Set1>>();

solved not able to convert json string into c# object , getting error- because the type requires a JSON array