Convert Map to JSON when saving to database?

I believe that in your migration file(s) and schema module(s) you can replace the "{}" string literal with a map literal: %{}.