this will also apply for `:json`. can we somehow reuse the `accessor` mechanic introduced with https://github.com/rails/rails/pull/12490. This will prevent us from having to check the type of all columns.