I don't want default json format of Active Support. So I put code in app.rb of my project.
ActiveSupport::JSON::Encoding.use_standard_json_time_format = false
it changed time format from iso8601 to strftime('%Y/%m/%d %H:%M:%S %z'). But i want to change time format strftime('%Y-%m-%d %H:%M:%S %z').
Time.now.to_json => output "2016/06/20 10:57:43 +0300" but i want to format "2016-06-20 10:57:43 +0300"
My project is a Ruby on Sinatra.