Question: I receive the JSON response from Twitter Search but how can I loop through them? 

```
 protected void BtnSearchClick(object sender, EventArgs e)
    {         
        StringBuilder sb = new StringBuilder();
        byte[] buf = new byte[8192];
        HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://search.twitter.com/search.json?&q=felipe&rpp=40");
        HttpWebResponse response = (HttpWebResponse)request.GetResponse();

        Stream resStream = response.GetResponseStream();

        string tempString = null;
        int count = 0;
        do
        {
            count = resStream.Read(buf, 0, buf.Length);// fill the buffer with data

            if (count != 0)// make sure we read some data
            {
                tempString = Encoding.ASCII.GetString(buf, 0, count);// translate from bytes to ASCII text

                sb.Append(tempString);// continue building the string
            }
        }
        while (count > 0); // any more data to read?

        //HttpContext.Current.Response.Write(sb.ToString()); //I can see my JSON response here
        //object deserializeObject = Newtonsoft.Json.JsonConvert.SerializeObject(sb.ToString());

    }

```

Answer: 
I would make use of `dynamic` keyword 

```
using (WebClient wc = new WebClient())
{

    var json = wc.DownloadString("http://search.twitter.com/search.json?&q=felipe&rpp=40");
    dynamic obj = JsonConvert.DeserializeObject(json);
    foreach (var result in obj.results)
    {
        Console.WriteLine("{0} - {1}:\n{2}\n\n", result.from_user_name, 
                                                 (DateTime)result.created_at, 
                                                 result.text);
    }
}

```
A strongly typed way..

```
public class MyTwitterClass
{

    public List<CustomObject> data {get; set;}
}

public class CustomObject 
{

    public string id {get; set;}
    public string name {get; set;}
}

```

Then you should be able to do:

```
string someJson=
    @"{""data"":[{""id"":""1"",""name"":""name1""}, {""id"":""2"",""name"":""name2""}]}";

MyTwitterClass someTwitterData = new JavaScriptSerializer().Deserialize<MyTwitterClass>(someJson);

foreach(var item in someTwitterData.data)
{
  Console.Write(item.id + " " + item.name);
}

```

Having said all that you may want to check this out

<http://linqtotwitter.codeplex.com/>

Thanks,