This is one of the most widely used and very useful script that you could use in your web services/ WCF services/ Handlers or any place wherein you require a JSON string to be passed to the client/ consumer.
The code snippet below show how its done:
public string GenerateJSONString(List<myObject> myCustomList)
//Initialize a stringbuilder object to hold the final JSON output
StringBuilder jsonBuilder = new StringBuilder();
//Generate the JSON string
//Return the JSON string
In the client side, you could use jQuery.parseJSON(JSONstring); and then parse this JSON string using the myObject properties. Remeber that parseJSON was added in jQuery v1.4.1.