How to export bash regular and associative arrays to JSON with JC

The jc typeset or declare command parser can make exporting bash variables, arrays, and associative arrays to JSON quick and easy.