```ruby

module SearchFlip
  module JSON
    def self.generate(obj)
      Oj.dump(obj, mode: :custom, use_to_json: true)
    end
  end
end

```

Set JSON options via customizable default options
user
```ruby

module SearchFlip
  class JSON
    @default_options = {
      mode: :custom,
      use_to_json: true
    }

    def self.default_options
      @default_options
    end

    def self.generate(obj)
      Oj.dump(obj, default_options)
    end
  end
end

```
assistant