How to convert posted json file (of which object type is UploadFile in FastAPI server) to python dictionary
import io import json @route.post("/processing") async def processing(file: UploadFIle = File(...)): fbyte = io.BytesIO(await file.read()) mydict = json.load(fbyte)