Q:

How to have javascript multi array?

I need multidimensional array, like this:
var myarray = [ ['username1', 10], ['username2', 20] ];

This array I need In (classical) ASP page (Default.asp), on other ASP page (generate.asp) I have MS SQL commands. So Idea for AJAX sending string from generate.asp to Default.asp is:
username1,10;username2,20

And in Default.asp build array someting like that:
var data="username1,10;username2,20";
data.split(';').each(function(){
//current ITEM. data.split(',')
new Array(item[0], item[1])
});

Please help me with syntax.

A:

I think you will have to use JSON, like this:
var myarray = [{username1 : 10}, {username2 : 20}]

