Sub JSON key pairs

Sep 2, 2010 at 9:45 PM

Hello,

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:

[{

"key":"pair",

"key2":"pair2"

"user":{

"subkey1":"subpair1",

"subkey2":"subpair2"

}

}]

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.

Nashauk