public Object getJsonFromFile(Class<?> type) throws IOException {

		Gson gson = new Gson();

		
		Object jsonObject = null;
		
		
		InputStream stream = this.getClass().getClassLoader()
				.getResourceAsStream(getPath());
		
		BufferedReader bufferedReader = new BufferedReader(
				new InputStreamReader(stream));
		
		try {

			StringBuilder stringBuilder = new StringBuilder();

			String line = bufferedReader.readLine();

			while (line != null) {

				stringBuilder.append(line);

				line = bufferedReader.readLine();
			}
			
			jsonObject = gson.fromJson(stringBuilder.toString(), type);

		} finally {

			bufferedReader.close();

		}

		return jsonObject;
	}