from fastapi import FastAPI app = FastAPI() @app.get("/") def greet_json(): tmp = "Konsta" return {"Hello": "World!", tmp}