def index(): username = get_jwt_identity() words = Word.query.all() json = Word.as_json_collection(words) return jsonify(json)