PHP Print_r is useful to print out array and dictionary collection. is asp.net build in this function??
You can achieve it by JavaScriptSerializer
var json = new JavaScriptSerializer().Serialize(yourObject); Response.Write("yourObject:" + json + "");