Hi,
First of all reaching session objects from hidden inputs is a more prefable way. But for this purpose you have to convert your array into a JSON object. You can do it with
Javascript Serializer[
^]
To do it place a hidden object into your page:
<input runat="server" type="hidden" name="myhidden" id="myhidden" />
Afterwards set your session value into it as well from the codebehind,
myhidden.Value = "YOUR DUTIES";
Then it's easy to reach this hidden input from javascript.
alert(document.form1.myhidden.value)