File tree Expand file tree Collapse file tree
src/FsCodec.SystemTextJson Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ The `Unreleased` section name is replaced by the expected version of next releas
1010
1111### Added
1212### Changed
13+
14+ - ` SystemTextJson ` : Upped minimum ` System.Text.Json ` version to ` 10.0. ` [ #129 ] ( https://github.com/jet/FsCodec/pull/129 )
15+
1316### Removed
1417### Fixed
1518
Original file line number Diff line number Diff line change 2727
2828 <PackageReference Include =" FSharp.Core" Version =" 4.5.4" />
2929
30- <PackageReference Include =" System.Text.Json" Version =" 6 .0.10 " />
30+ <PackageReference Include =" System.Text.Json" Version =" 10 .0.0-rc.2.25502.107 " />
3131 </ItemGroup >
3232
3333 <ItemGroup >
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ open System
44open System.Runtime .CompilerServices
55open System.Text .Json
66
7- [<Extension ; AbstractClass; Sealed>]
7+ [<AbstractClass; Sealed>]
88type InteropHelpers private () =
99
1010 static member Utf8ToJsonElement ( x : ReadOnlyMemory < byte >): JsonElement =
1111 if x.IsEmpty then JsonElement()
12- else JsonSerializer.Deserialize < JsonElement>( x.Span)
12+ else JsonElement.Parse x.Span
1313
1414 static member JsonElementToUtf8 ( x : JsonElement ): ReadOnlyMemory < byte > =
1515 if x.ValueKind = JsonValueKind.Undefined then ReadOnlyMemory.Empty
You can’t perform that action at this time.
0 commit comments