Added selectedItems attribute to return the selected JSON objects