How can I make POST query for my web-service on Java, Anroid?
<p>I have code for POST query on Java</p>

<pre><code>    ArrayList&lt;HashMap&lt;String, String&gt;&gt; books=SQLiteDbWrapper.getInstance().getAllBooks();
    JSONObject object=new JSONObject();
    object.put("key", KEY);

    JSONArray isbns=new JSONArray();
    for (HashMap&lt;String, String&gt; book:books) {
        isbns.put(book.get(SQLiteDbHelper.ISBN13_FIELD));
    }

    object.put("isbns", isbns);
    object.put("email", email);
    Log.e("log", object.toString());
    HttpClient client = new DefaultHttpClient();
    HttpPost request = new HttpPost(BASE_URL+SUBMIT_SCRIPT);

    request.setEntity(new ByteArrayEntity(
        object.toString().getBytes("UTF8")));
    HttpResponse response = client.execute(request);
</code></pre>

<p>I need to send JSON data into server; my web-service must get this data from $POST['json'] variable, but I don't know how can I put my JSONObject object into 'json' field for POST query? Please, help me</p>
