require 'json'
# => true
x = { starting_time: Time.now }
# => {:starting_time=>2019-04-19 11:51:30 +0900}
x.to_json
# => "{\"starting_time\":\"2019-04-19 11:51:30 +0900\"}"
I want my date formats to automatically serialize in iso8601. How can I set the default for serialization?