yesodweb/persistent — pull request #232 by rehno-lindeque (2014-05-04 19:58:13+00:00)
Title: Automatically derive serialized JSON fields

It's occasionally convenient to save fields into the database directly as JSON. This PR adds a `derivePersistFieldJSON` counterpart to `derivePersistField` using `toJSON`/`fromJSON` instead of `show`/`reads` to serialize the field. This is quite useful when working with a shared database (from multiple languages).

Does it look ok?