public JSONObject getAttributes() throws Exception {
	JSONObject result = new JSONObject();
	JSONObject item = this.getView();
	Iterator<String> i = item.keys();
	while (i.hasNext()) {
		String key = i.next();
		if (!isReserved(key)) {
			Object value = item.get(key);
			if (!(value instanceof JSONObject)) {
				result.put(key, value);
			}
		}
	}
	return result;
}