added json support for card and deck