using System.Text.Json.Serialization;
public static void Main()
int valore = (int)valoreBool;
Console.WriteLine(valore);
string jresult = "{\"Action\":\"onBoardingPdp\",\"ErrorCD\":\"0\",\"ErrorDescr\":\"\",\"Response\":{\"idCheope\":\"61646\"}}";
var res = JsonSerializer.Deserialize<OnBoardingResult>(jresult);
Console.WriteLine(jresult);
Console.WriteLine(res.action);
Console.WriteLine(res.errorCD);
Console.WriteLine(res.errorDescr);
Console.WriteLine(res.response.idCheope);
[JsonPropertyName("Action")]
public string action { get; set; }
[JsonPropertyName("ErrorCD")]
public string errorCD { get; set; }
[JsonPropertyName("ErrorDescr")]
public string errorDescr { get; set; }
public class OnBoardingResult : BaseResult
[JsonPropertyName("Response")]
public OnBoardingResultResponse response { get; set; }
public class OnBoardingResultResponse
public string idCheope { get; set; }