Я отправляю объект JSON на HTTP-сервер, используя следующий код.
Главное, что мне нужно также отправлять значения Boolean.
public void getServerData() throws JSONException, ClientProtocolException, IOException {
    ArrayList<String> stringData = new ArrayList<String>();
    DefaultHttpClient httpClient = new DefaultHttpClient();
    ResponseHandler <String> resonseHandler = new BasicResponseHandler();
    HttpPost postMethod = new HttpPost("http://consulting.for-the.biz/TicketMasterDev/TicketService.svc/SaveCustomer");
    JSONObject json = new JSONObject();
    json.put("AlertEmail",true);
    json.put("APIKey","abc123456789");
    json.put("Id",0);
    json.put("Phone",number.getText().toString());
    json.put("Name",name.getText().toString());
    json.put("Email",email.getText().toString());
    json.put("AlertPhone",false);      
    postMethod.setEntity(new ByteArrayEntity(json.toString().getBytes("UTF8")));
    String response = httpClient.execute(postMethod,resonseHandler);
    Log.e("response :", response);
    }
но показывая исключение в строке
String response = httpClient.execute(postMethod,resonseHandler);
как
org.apache.http.client.HttpResponseException: Bad Request
Может кто-нибудь мне помочь.
