i would add
```ruby
require 'json'
```
too