I get this JSON resposne from a server:
{"User1":0, "User2":0,"User3":0,"User4":0,"User5":0,"UserN":0,}
Users can be from 0 to N.
I want to deserialize this JSON string into a List of Users
public class User
{
public string Name{get;set;}
public string Status{get;set;}
}
I try this but it doesn't work.
List<Users> peoples;
peoples = new JavaScriptSerializer().Deserialize<List<Users>>(jsonString);