Added JSON return of card id's