Refactored ListBookingsJSON to remove duplication.