Ritikesh

Results 17 comments of Ritikesh

@franzliedke pls feel free to do so. > I'm also happy to work on such a PR. 😇

I'm good with the approach, however, we need to support the older way as well and provide deprecation warnings for the same.

Does `Oj` allow setting a global default mode? That would be a good place to look at to fix this issue. The only other way I see forward with this...

You can set the [default configuration](https://guides.rubyonrails.org/configuring.html#config-active-support-time-precision) for this in `config/application.rb` or an initializer file to fix this - ```ruby ActiveSupport::JSON::Encoding.time_precision = 0 ``` Before - ```ruby => {a: Time.now.utc}.as_json =>...

but isn't JSON format setting a more application level setting? 🤔 I'm assuming Oj might have just gone about respecting the default settings that other libraries like the native JSON...

@marvfinsy, it would be helpful to have a look at your blueprint and the expected output visually to be able to suggest a way forward.