List<User> list = LoadUsers();
JObject json = new JObject();
json["users"] = new JValue(list);
Doesn't seem to be working?
Could not determine JSON object type for type System.Collections.Generic.List
List<User> list = LoadUsers();
JObject json = new JObject();
json["users"] = new JValue(list);
Doesn't seem to be working?
Could not determine JSON object type for type System.Collections.Generic.List
This might help:
json["users"] = new JValue(JsonConvert.SerializeObject(list));