FIX: be explicit about style of serialization used

FIX: be explicit about style of serialization used

We are temporarily using object serialization here until we swap to another format. The plan it to sway this out to something else in a future commit.

Core amended the default to use compat serialization by default

diff --git a/lib/collector.rb b/lib/collector.rb
index 99278b7..f921711 100644
--- a/lib/collector.rb
+++ b/lib/collector.rb
@@ -34,7 +34,7 @@ module ::DiscoursePrometheus
     end
 
     def process(str)
-      obj = Oj.load(str)
+      obj = Oj.load(str, mode: :object)
       metric = DiscoursePrometheus::InternalMetric::Base.from_h(obj)
 
       if InternalMetric::Process === metric
diff --git a/lib/internal_metric/base.rb b/lib/internal_metric/base.rb
index c876770..57c3c6f 100644
--- a/lib/internal_metric/base.rb
+++ b/lib/internal_metric/base.rb
@@ -42,7 +42,7 @@ module DiscoursePrometheus::InternalMetric
     end
 
     def to_json(*ignore)
-      Oj.dump(to_h)
+      Oj.dump(to_h, mode: :object)
     end
 
     def to_h

GitHub sha: b931f5b9