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 22using CliFx . Attributes ;
33using CliFx . Infrastructure ;
44using Deployf . Cli . Models ;
5- using Newtonsoft . Json ;
65using Spectre . Console ;
6+ using System . Text . Json ;
77
88namespace 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 ) ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments