private JSONObject getJson(String endpoint, Map<String, String> params) {
		try {
			String responseString = sendRequest(endpoint, params);
			JSONObject jsonObject = (JSONObject) parser.parse(responseString);
			
			JSONObject bossResponse = (JSONObject) jsonObject.get("bossresponse");
			
			String responseCode = (String) bossResponse.get("responsecode");
			
			if (responseCode.equals("200")) {
				return bossResponse;
			}
			else throw new BossException("The search request returned a response code of " + responseCode);
		}
		 catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		throw new BossException("Unspecified error");
	}