This already makes some assumptions... I could just as easily do:

```ruby
puts ::JSON.generate(obj.map { |m| m['timestamp'] ||= Time.now.to_i })
```

Work under the assumption that if someone is passing an array, it is because they want an array of individual metrics. Not... something else... like an array of graphite metrics in strings... though we could support that use case by adding back the if.