Skip to content

Commit 484e568

Browse files
committed
Newtonsoft.Json removed
1 parent 17f8678 commit 484e568

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Commands/AppListCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
using CliFx.Attributes;
33
using CliFx.Infrastructure;
44
using Deployf.Cli.Models;
5-
using Newtonsoft.Json;
65
using Spectre.Console;
6+
using System.Text.Json;
77

88
namespace Deployf.Cli.Commands;
99

@@ -19,7 +19,7 @@ public async ValueTask ExecuteAsync(IConsole console)
1919
response.EnsureSuccessStatusCode();
2020

2121
var stringResult = await response.Content.ReadAsStringAsync();
22-
var objectResponse = JsonConvert.DeserializeObject<PageDto<ApplicationSummaryDto>>(stringResult);
22+
var objectResponse = JsonSerializer.Deserialize<PageDto<ApplicationSummaryDto>>(stringResult, new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });
2323

2424
var table = new Table();
2525
table.Border(TableBorder.MinimalDoubleHead);

Deployf.Cli.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
<ItemGroup>
4040
<PackageReference Include="CliFx" Version="2.2.2" />
41-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
4241
<PackageReference Include="Spectre.Console" Version="0.43.0" />
4342
</ItemGroup>
4443

0 commit comments

Comments
 (0)