Remove calls to deprecated generate_json() function

Following up this question:

http://expressionengine.stackexchange.com/q/12262/150