This project has moved. For the latest updates, please go here.

Sub JSON key pairs

Sep 2, 2010 at 9:45 PM


Sorry if this is a little single of a question, but I'm using JSON.Net to convert some Twitter JSON into an object I've created but I've run into a problem. The Twitter JSON is in the following format:









I was using the following C# to DeserializeObject:

List<TwitterItem> searchResults = JsonConvert.DeserializeObject<List<TwitterItem>>(sJSON);

public class TwitterItem
    public int Count { get; set; }
    public string text { get; set; }
    public string source { get; set; }
    public string profile_image_url { get; set; }

How do I add the sub pairs (under the "Users {}") to the object?

Thanks in advanced.