title: How to pass array in XHR.get request of Luci openwrt?
body: <p>I am trying to send array from javascript to XHR.get request in Luci Openwrt . </p>
  
  <pre><code>var myarray[] has some contents . for example : `myarray[] = {"1","2","3"}` 
  </code></pre>
  
  <p>I need to pass this array to <code>XHR.get</code> requests as arguments . How can i pass this array ? </p>
  
  <p>This is sample code :</p>
  
  <pre><code>XHR.get('&lt;%=REQUEST_URI%&gt;', {status: 2,value: myarray},
      function(x, info) {
          if (!info) {
              location.href=location.href;
          }
          else {
              console.log("success");
          }
      }
  );
  </code></pre>
  
  <p>and in Lua code I am receiving this form data :</p>
  
  <pre><code>if luci.http.formvalue("status") == "2" then
      local DetailValue[] = luci.http.formvalue("value")
      local fileContent = {
          content = "sample1",
          find = "sample2"
      }
      luci.http.prepare_content("application/json")
      luci.http.write_json(fileContent)
      return
  end
  </code></pre>
  
  <p>But I am getting errors. Is this correct way to send array via XHR.get ? Any suggestions ? </p>