title: How to pass a very long array of objects within a query string?
body: <p>There is a RESTful API with some resource. I need to <strong>GET</strong> some resource with parameter which in JSON representation looks like:</p>
  
  <pre><code>{
    "id": int,
    "params":
    [
      {
        "param1": "string",
        "param2": "string"
      },
      {
        "param1": "string",
        "param2": "string"
      }
    ]
  }
  </code></pre>
  
  <p>I have two possible ways to send this object in the query string:</p>
  
  <ul>
  <li><code>id=1&amp;params[0].param1=test&amp;params[0].param2=test&amp;params[1].param1=test&amp;params[1].param2=test</code></li>
  <li><code>id=10000&amp;params[0][param1]=test&amp;params[0][param2]=test&amp;params[1][param1]=test&amp;params[1][param2]=test</code></li>
  </ul>
  
  <p>The problem is that <code>params</code> array can have a lot of items and the query string can be very long, over 2,000 characters.</p>
  
  <p>To send params in the request body via GET is bad idea.</p>
  
  <p>How I can send such params in a proper RESTful way? Can I use other HTTP method? Or just change the query length on the server? </p>