📝 Update docs for ORJSONResponse with details about improving performance (#2615)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Ben Falk
2022-09-01 05:59:05 -04:00
committed by GitHub
parent 278adc012a
commit a71077c530
2 changed files with 7 additions and 1 deletions

View File

@@ -6,4 +6,4 @@ app = FastAPI()
@app.get("/items/", response_class=ORJSONResponse)
async def read_items():
return [{"item_id": "Foo"}]
return ORJSONResponse([{"item_id": "Foo"}])