title: Send multiple records via json to php mysql
body: <p>How do I send more than one record at a time using json?  This code is a sample I found online but I need to send say 100 objects or records at a time.  The data comes from a database.</p>
  
  <pre><code>protected String doInBackground(String... args) {
          String name = inputName.getText().toString();
          String price = inputPrice.getText().toString();
          String description = inputDesc.getText().toString();
  
          // Building Parameters
          List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
          params.add(new BasicNameValuePair("name", name));
          params.add(new BasicNameValuePair("price", price));
          params.add(new BasicNameValuePair("description", description));
  
          // getting JSON Object
          // Note that create product url accepts POST method
          JSONObject json = jsonParser.makeHttpRequest(url_create_product,
                  "POST", params);
  </code></pre>