Convert testCards to JSON