src/main/java/io/magicthegathering/javasdk/api/MTGAPI.java
protected static <TYPE> TYPE get(String path, String key,
			Class<TYPE> expectedClass) {
		Gson deserializer = new GsonBuilder().create();
		JsonObject jsonObject = getJsonObject(path, deserializer).get(0);
		return deserializer.fromJson(jsonObject.get(key),
				expectedClass);
	}
protected static <TYPE> TYPE get(String path, String key,
			Class<TYPE> expectedClass) {
		Gson deserializer = new GsonBuilder().create();
		JsonObject jsonObject = getJsonObject(path, deserializer).get(0);
		return deserializer.fromJson(jsonObject.get(key),
				expectedClass);
	}
protected static < TYPE > TYPE get ( String path , String key , Class < TYPE > expectedClass ) { Gson deserializer = new GsonBuilder ( ) . create ( ) ; JsonObject jsonObject = getJsonObject ( path , deserializer ) . get ( 0 ) ; return deserializer . fromJson ( jsonObject . get ( key ) , expectedClass ) ; }
Make an HTTP GET request to the given path and map the object under the
given key in the JSON of the response to the Java {@link Class} of type
{@link TYPE}.

@param path Controlled by what is calling the function, currently "sets" or "cards"
depending on the calling class.
@param key The key for the JSON element we are looking for.
@param expectedClass The class type we are expecting to get back.
@return Object of the requested type if found.
Make an HTTP GET request to the given path and map the object under the given key in the JSON of the response to the Java { @link Class } of type { @link TYPE } .