Returns JSONObject for httpPost method