title: How do I add array parameters to an url using Uri.Builder?
body: <p>I need to generate an url with an array parameter, or looking like so: </p>
  
  <pre><code>?array_name[]=value1&amp;array_name[]=value2
  </code></pre>
  
  <p>How to achieve this with <code>Uri.Builder</code>? The following code:</p>
  
  <pre><code>Uri.Builder builder = new Uri.Builder();
  builder.appendQueryParameter("array[]", "one");
  builder.appendQueryParameter("array[]", "another");
  String result = builder.build().toString();
  </code></pre>
  
  <p>Gets me this output:</p>
  
  <p><code>?array%5B%5D=one&amp;array%5B%5D=another</code></p>
  
  <p>In which square brackets are escaped.</p>
  
  <p>How do I obtain the result that I want? I wouldn't like to ditch <code>Uri.Builder</code> altogether as the solution is already based on that class.</p>