FastAPI
FastAPI Serialize
return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({'data': bean}, custom_encoder={
ObjectId: str,
datetime: str
}))
return JSONResponse(status_code=status.HTTP_200_OK, content=jsonable_encoder({'data': bean}, custom_encoder={
ObjectId: str,
datetime: str
}))