Do JSON in Python

I replaced the Postgres-specific JSON column type with one that should work for SQLite and other databases as well. *Appears* to work.

* [ ] Confirm that it works.