Get json from php to android : I cant give jason from php to android
I want send data to php and insert to database and give json data after insert database in android

insert database process is true but i cant give json data in android!
I use AsyncTask in this code
please help me

    try {
                //connect to php and send data code...



                HttpResponse response = httpclient.execute(httppost);
                InputStream inputStream = response.getEntity().getContent();
                String result = convertInputStreamToString(inputStream);

                if (result != null) {
                    try {

                        JSONObject json = new JSONObject(result);
                        Log.i("json", json.getString("insert_sucss"));
                        if (json.has("insert_err")) {
                            Toast.makeText(RegisterActivity.this, json.getString("insert_err"), Toast.LENGTH_LONG).show();
                        }
                        if (json.has("insert_sucss")) {
                            Toast.makeText(RegisterActivity.this, json.getString("insert_sucss"), Toast.LENGTH_LONG).show();
                        }
                    }
                    catch (JSONException e)
                    {
                        e.printStackTrace();
                    }

                }
            }
            catch (Exception e)
            {
                Log.e("log_tag", "Error:  " + e.toString());
            }
            return null;
        }


        private String convertInputStreamToString(InputStream inputStream) {
            try {
                BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
                StringBuilder builder = new StringBuilder();

                String line = "";

                while ((line = reader.readLine()) != null) {
                    builder.append(line);
                }

                return builder.toString();
            }
            catch (IOException e) {
                e.printStackTrace();
            }

            return null;
        }

