I am very new to ASP.net . How could I create the following JSON object in c#
{"total":2,"rows":[{"productid":"1","attr":{"size":"10dc","color":"red&yellow"},
{"productid":"2","attr":{"size":"102dc","color":"green&white"}
My ultimate aim is to send this JSON Object to client side data gird for data binding.The grid is expecting the data in this format