Added a require 'json' to the Endpoints module.