Change group jsonify() to to_json()