I have many json lise,
{
"part_1": "",
"part_2": "",
"part_3": "",
"part_4": "",
"part_5": "",
"part_6": "",
"part_7": "",
"part_8": "",
"part_9": "",
"part_10": "",
"part_11": "",
"part_12": "",
}
I want to deserialize these json and remove their underscores like
public partial class Welcome4
{
public string Part1 { get; set; }
public string Part2 { get; set; }
public string Part3 { get; set; }
......
}
Using JsonProperty requires writing too many times. Is there any simpler way?
I tried to use DefaultContractResolver but could not find the relevant interface and could only operate on properties