private void jsonToMembers(JSONObject payload) throws CommandParseException {
		if (payload == null) {
			throw new CommandParseException("no payload found");
		}
		try {
			if (payload.has("url")) {
				this.url = payload.getString("url");
			}
			if (payload.has("title")) {
				this.title = payload.getString("title");
			}
			if (payload.has("mimetype")) {
				this.mimetype = payload.getString("mimetype");
			}
		} catch (JSONException e) {
			e.printStackTrace();
			throw new CommandParseException("Error parsing JSON");
		}
	}