title: How to pass multiple parameters list in json with android, syntax issue
body: <p>I have to pass a json object with a method and multiple parameters</p>
  
  <p>the object must have this form</p>
  
  <pre><code>{"method":"startSession","params":"["email" "testmail@test.it", "password" "1234", "stayLogged" "1", "idClient" "IPHONE"]"}
  </code></pre>
  
  <p>My code in android to send this object is </p>
  
  <pre><code>HttpPost httppost = new HttpPost(BASE_URI);
  
             JSONObject json = new JSONObject(); 
  
              String email="testmail@test.it";
              String emailRic="email"+" "+"\""+email+"\"";
              String password="1234";
              String passwordRic="password"+" "+"\""+password+"\"";
              String stayLogged="1";
              String stayLoggedRic="stayLogged"+" "+"\""+stayLogged+"\"";
              String idClient="ANDROID";
              String idClientRic="idClient"+" "+"\""+idClient+"\"";
  
              try {
                  List&lt;String&gt; accessParameters=new ArrayList&lt;String&gt;();
                  accessParameters.add(emailRic);
                  accessParameters.add(passwordRic);
                  accessParameters.add(stayLoggedRic);
                  accessParameters.add(idClientRic);
                  String par=accessParameters.toString();
  
                  json.put("method", "startSession");
                  json.put("params", par);                  
  
                  JSONArray postjson=new JSONArray(); 
                  postjson.put(json); 
                  httppost.setHeader("json",json.toString());
                  httppost.getParams().setParameter("jsonpost",postjson); 
                  System.out.print(json); 
                  HttpResponse response = mClient.execute(httppost); 
  
                  if(response != null){
                      InputStream is = response.getEntity().getContent();
  
                      BufferedReader reader = new BufferedReader(new InputStreamReader(is));
                      StringBuilder sb = new StringBuilder();
                      System.out.println("the answer is:\n"+sb);
                      String line = null;
  
                  try {
                          while ((line = reader.readLine()) != null) {
                          sb.append(line + "\n");
                          }
  
                      } catch (IOException e) {
                          e.printStackTrace();
                      } finally {
                          try {
                              is.close();
                          } catch (IOException e) {
                              e.printStackTrace();
                          }
                      }
                 // text = sb.toString();
                  }
                 // tv.setText(text);
  
              }catch (ClientProtocolException e) {
                  // TODO Auto-generated catch block
              } catch (IOException e) {
                  // TODO Auto-generated catch block
              }
  </code></pre>
  
  <p>But this send an object with the wrong form</p>
  
  <pre><code>{"method":"startSession","params":"[\"email\" \"testmail@test.it\", \"password\" \"1234\", \"restaConnesso\" \"1\", \"idClient\" \"IPHONE\"]"}
  </code></pre>
  
  <p>(I have seen this in the debugger)</p>
  
  <p>if I try to remove the value \" from the piece of code</p>
  
  <pre><code>   String email="testmail@test.it";
              String emailRic="email"+" "+"\""+email+"\"";
              String password="1234";
              String passwordRic="password"+" "+"\""+password+"\"";
              String stayLogged="1";
              String stayLoggedRic="stayLogged"+" "+"\""+stayLogged+"\"";
              String idClient="ANDROID";
              String idClientRic="idClient"+" "+"\""+idClient+"\"";
  </code></pre>
  
  <p>The object sent assume the form</p>
  
  <pre><code>  {"method":"startSession","params":"[email testmail@test.it, password 1234, restaConnesso 1, idClient IPHONE]"}
  </code></pre>
  
  <p><strong>how can I sent the json with exacty this sintax???</strong></p>
  
  <pre><code>{"method":"startSession","params":"["email" "testmail@test.it", "password" "1234", "stayLogged" "1", "idClient" "IPHONE"]"}
  </code></pre>