We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f7ca4b + 55040c0 commit d6db426Copy full SHA for d6db426
1 file changed
docs/Using.md
@@ -102,13 +102,13 @@ To use FSharp.SystemTextJson in Giraffe (for example with the `json` function):
102
```fsharp
103
open System.Text.Json
104
open System.Text.Json.Serialization
105
- open Giraffe.Serialization
+ open Giraffe
106
107
let configureServices (services: IServiceCollection) =
108
let jsonOptions = JsonSerializerOptions()
109
jsonOptions.Converters.Add(JsonFSharpConverter())
110
services.AddSingleton(jsonOptions) |> ignore
111
- services.AddSingleton<IJsonSerializer, SystemTextJsonSerializer>() |> ignore
+ services.AddSingleton<Json.ISerializer, SystemTextJson.Serializer>() |> ignore
112
// ...
113
```
114
0 commit comments