File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
using CliFx . Attributes ;
3
3
using CliFx . Infrastructure ;
4
4
using Deployf . Cli . Models ;
5
- using Newtonsoft . Json ;
6
5
using Spectre . Console ;
6
+ using System . Text . Json ;
7
7
8
8
namespace Deployf . Cli . Commands ;
9
9
@@ -19,7 +19,7 @@ public async ValueTask ExecuteAsync(IConsole console)
19
19
response . EnsureSuccessStatusCode ( ) ;
20
20
21
21
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 } ) ;
23
23
24
24
var table = new Table ( ) ;
25
25
table . Border ( TableBorder . MinimalDoubleHead ) ;
Original file line number Diff line number Diff line change 38
38
39
39
<ItemGroup >
40
40
<PackageReference Include =" CliFx" Version =" 2.2.2" />
41
- <PackageReference Include =" Newtonsoft.Json" Version =" 13.0.1" />
42
41
<PackageReference Include =" Spectre.Console" Version =" 0.43.0" />
43
42
</ItemGroup >
44
43
You can’t perform that action at this time.
0 commit comments