Extract card types as separate elements, not blob.
Merge branch 'types'
JSON output support
Fix default JSON to False
Omit empty fields from JSON output.