use Active Record to serilize params as it can handle active record objects