Display array of Hashes in modal ajax

Hi,
   I have an array of another array in my controller. The array is
generated based on a data sent in from ajax request.

This is my view code:

$.ajax({
  type: 'GET',
  url:'/my_Cont_Method',
  async: false,
  data:{ data:value},
  success:function(data){

}

In my controller file,

I have an array of array.

a = {[1,[red,blue]],[2,[green,brown]]}

Input : "1"

How can I display "red and blue" in my modal box? I do not want to use
cookie.

Regards,
Nikhil