title: JSONArray object to jquery
body: <p>In my Java code I have a JSONArray object, named colorList which contains a list of colors. It looks something like this:
      ["Red", "Yellow", "Blue"]</p>
  
  <p>How do I pass this value to a jquery variable?</p>
  
  <p>My jquery should look like this:</p>
  
  <pre><code>var hooks = {  
     processOptions: [function(plot,options) {  
             options.colors = ["Red", "Yellow", "Blue"];
     }]  
   };
  </code></pre>