Tried to do it with JSON.NEt even with the JSONConvert class. Below is my sample code:
ArrayList arr = new ArrayList();
string json = JSONConvert.Serialize(arr);
This gives an error: "JSONserializationException: Self referencing loop"
But when I try to fill the ArrayList with foreach loop, its working perfectly fine. Please help.