module RSpec
This looks dodgy, but it’s actually safer than inheriting from RSpec::Core::Formatters::JsonFormatter
and using a custom class, because if the JsonFormatter class gets refactored, the –format json option will still work, but the inheritance will break.