Rtransat
Rtransat
CC#
Created by Rtransat on 7/16/2023 in #help
❔ Get only values when deserialize json
Hi, it's possible to deserialize something like this with only values?
"genres": {
"Action": "Action",
"Adventure": "Aventure",
"Drama": "Drame",
"Fantasy": "Fantastique"
},
"genres": {
"Action": "Action",
"Adventure": "Aventure",
"Drama": "Drame",
"Fantasy": "Fantastique"
},
I would like something like this instead of a Dictionary:
[JsonPropertyName("genres")]
public List<string> Genres { get; set; }
[JsonPropertyName("genres")]
public List<string> Genres { get; set; }
17 replies