Add require json

Fixes the 'uninitialized constant JSON::State (NameError)' problem.