module Reporter
  class BodyBuilder < Struct.new(:shards)
    def lift
      {
        'key' => {
          '_type' => 'n',
          '_value' => shards.flatten
        }
      }
    end
  end
end

require 'oj'

module Reporter
  class BodyBuilder < Struct.new(:shards)
    def lift
      Oj.dump(body)
    end

    def body
      {
        'key' => {
          '_type' => 'n',
          '_value' => shards.flatten
        }
      }
    end
  end
end

Send circonus payload as json
Send circonus payload as json