remove deprecated calls to generate_json