1
0
mirror of https://github.com/actix/actix-website synced 2024-11-24 00:41:07 +01:00

fix small typo in request.md (#463)

This commit is contained in:
hampusek 2024-09-27 12:00:08 +02:00 committed by GitHub
parent 4a92aea8a5
commit 78d97e26e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ There are several options for json body deserialization.
The first option is to use _Json_ extractor. First, you define a handler function that accepts `Json<T>` as a parameter, then, you use the `.to()` method for registering this handler. It is also possible to accept arbitrary valid json object by using `serde_json::Value` as a type `T`. The first option is to use _Json_ extractor. First, you define a handler function that accepts `Json<T>` as a parameter, then, you use the `.to()` method for registering this handler. It is also possible to accept arbitrary valid json object by using `serde_json::Value` as a type `T`.
First example of json of `JSON Request` depends on `serde`: First example of `JSON Request` depends on `serde`:
```toml ```toml
[dependencies] [dependencies]