title: How to pass array values in JSON?
body: <pre><code>ArrayList&lt;StylistArray&gt;stylistsArr=new ArrayList&lt;StylistArray&gt;();
  stylistsArr.add(new StylistArray("BqYWKWzs4r8SyGQvyqH2","18:30"));
  stylistsArr.add(new StylistArray("at5kjx5FqIxbnMys8w4q","18:30"));
  stylistsArr.add(new StylistArray("nFI5hxfIePx240dmqR0R","18:00"));
  stylistsArr.add(new StylistArray("spxSj8UZem5uD0wL46EP","18:20"));
  </code></pre>
  
  <p>.</p>
  
  <pre><code>https://us-central.jshshskajshdala.net?dasa="+"2018-09-04"+"&amp;ewsss="+"17:50"+"&amp;stylist="+String.valueOf(stylistsArr) 
  </code></pre>
  
  <p>I want to pass this arrayList along with the url. When I try to pass the array values the name of the model class is passing instead of values in the class</p>
  
  <p>Example<br>
  I want to pass values like this:</p>
  
  <pre><code>[
    {
      "stylist": "BqYWKWzs4r8SyGQvyqH2",
      "endTime": "18:30"
    },
    {
      "stylist": "at5kjx5FqIxbnMys8w4q",
      "endTime": "18:30"
    },
    {
      "stylist": "nFI5hxfIePx240dmqR0R",
      "endTime": "18:00"
    },
    {
      "stylist": "spxSj8UZem5uD0wL46EP",
      "endTime": "18:00"
    }
  ]
  </code></pre>