- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 97 for jsonable_encoder (0.07 seconds)
-
docs/ja/docs/tutorial/stream-json-lines.md
{* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[27:30] hl[28] *} ### 戻り値の型なし { #no-return-type } 戻り値の型を省略することもできます。FastAPI はその場合、データを JSON にシリアライズ可能な形に変換するために [`jsonable_encoder`](./encoder.md) を使い、JSON Lines として送信します。 {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[33:36] hl[34] *} ## Server-Sent Events (SSE) { #server-sent-events-sse }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:55:22 GMT 2026 - 5.1K bytes - Click Count (0) -
docs/uk/docs/tutorial/encoder.md
Наприклад, якщо вам потрібно зберегти це в базі даних. Для цього **FastAPI** надає функцію `jsonable_encoder()`. ## Використання `jsonable_encoder` { #using-the-jsonable-encoder } Давайте уявимо, що у вас є база даних `fake_db`, яка приймає лише дані, сумісні з JSON.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:27:41 GMT 2026 - 2.4K bytes - Click Count (0) -
docs/tr/docs/tutorial/encoder.md
Örneğin, bunu bir veritabanında saklamanız gerekiyorsa. Bunun için **FastAPI**, `jsonable_encoder()` fonksiyonunu sağlar. ## `jsonable_encoder` Kullanımı { #using-the-jsonable-encoder } Yalnızca JSON ile uyumlu veri kabul eden bir veritabanınız olduğunu düşünelim: `fake_db`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 1.8K bytes - Click Count (0) -
docs/ru/docs/advanced/response-directly.md
Если вы объявите [Модель ответа](../tutorial/response-model.md), FastAPI будет использовать её для сериализации данных в JSON с помощью Pydantic. Если вы не объявите модель ответа, FastAPI использует `jsonable_encoder`, как описано в [JSON кодировщик](../tutorial/encoder.md), и поместит результат в `JSONResponse`. Также вы можете создать `JSONResponse` напрямую и вернуть его. /// tip | Подсказка
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:56:20 GMT 2026 - 6.9K bytes - Click Count (0) -
docs/fr/docs/tutorial/encoder.md
Par exemple, si vous devez le stocker dans une base de données. Pour cela, **FastAPI** fournit une fonction `jsonable_encoder()`. ## Utiliser `jsonable_encoder` { #using-the-jsonable-encoder } Imaginons que vous ayez une base de données `fake_db` qui ne reçoit que des données compatibles JSON.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:37:13 GMT 2026 - 1.8K bytes - Click Count (0) -
docs/pt/docs/tutorial/encoder.md
Por exemplo, se você precisar armazená-lo em um banco de dados. Para isso, **FastAPI** fornece uma função `jsonable_encoder()`. ## Usando a função `jsonable_encoder` { #using-the-jsonable-encoder } Vamos imaginar que você tenha um banco de dados `fake_db` que recebe apenas dados compatíveis com JSON.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 1.7K bytes - Click Count (0) -
docs/tr/docs/advanced/response-directly.md
Bir response model deklare etmezseniz, FastAPI [JSON Uyumlu Encoder](../tutorial/encoder.md)'da anlatılan `jsonable_encoder`'ı kullanır ve bunu bir `JSONResponse` içine koyar. Ayrıca doğrudan bir `JSONResponse` oluşturup döndürebilirsiniz. /// tip | İpucu
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 4.6K bytes - Click Count (0) -
docs/pt/docs/advanced/response-directly.md
Se você declarar um [Modelo de resposta](../tutorial/response-model.md), o FastAPI irá usá-lo para serializar os dados para JSON, usando o Pydantic. Se você não declarar um modelo de resposta, o FastAPI usará o `jsonable_encoder` explicado em [Codificador Compatível com JSON](../tutorial/encoder.md) e o colocará em uma `JSONResponse`. Você também pode criar uma `JSONResponse` diretamente e retorná-la. /// tip | Dica
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 4.5K bytes - Click Count (0) -
fastapi/routing.py
get_dependant, get_flat_dependant, get_parameterless_sub_dependant, get_stream_item_type, get_typed_return_annotation, solve_dependencies, ) from fastapi.encoders import jsonable_encoder from fastapi.exceptions import ( EndpointContext, FastAPIError, RequestValidationError, ResponseValidationError, WebSocketRequestValidationError, ) from fastapi.sse import (Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 193K bytes - Click Count (0) -
docs_src/response_directly/tutorial001_py310.py
from fastapi import FastAPI from fastapi.encoders import jsonable_encoder from fastapi.responses import JSONResponse from pydantic import BaseModel class Item(BaseModel): title: str timestamp: datetime description: str | None = None app = FastAPI() @app.put("/items/{id}") def update_item(id: str, item: Item): json_compatible_item_data = jsonable_encoder(item)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 474 bytes - Click Count (0)