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?