```ruby
module ActiveRecord
  module ConnectionAdapters
    module Sunstone
      module Type
        class Json < ActiveRecord::Type::Internal::AbstractJson

          def serialize(value)
            value
          end

        end
      end
    end
  end
end```

Fix JSON type to allow rails to know when dirty
user
```ruby
module ActiveRecord
  module ConnectionAdapters
    module Sunstone
      module Type
        class Json < ActiveRecord::Type::Internal::AbstractJson


          def deserialize(value)
            value.dup
          end
          
          def serialize(value)
            value
          end

        end
      end
    end
  end
end```
assistant