We always need to require 'json'. It's part of the STDLIB not core ruby, so even though it ships with ruby in 1.9 and 2, the require statement is necessary.