.aspx.cs:
List<SomeObject> items = whatever.getList();
Session["records"] = items;
If I access the Session in my Javascript file it gives me a string like
'System.Collections.Generic.List`1[SomeObject]'
.js function:
var records = '<%= Session["records"] %>';
How can I convert the session into an array? Thanks