But my point was more about the arguments to these methods. Seems like "generate_json" should take a python dictionary and turn it into a json string.