C
C#8mo ago
Wilhelm

Newtonsoft(JSON.net) Serializing JsonProperty attributes with custom converter

How do i serialize JsonProperty attributed fields with custom converter? https://gdl.space/quxorezosa.cpp
1 Reply
Punica
Punica8mo ago
//example of json that is submitted
"Car":{
"Type":"Ferrari",
}

//where it gets mapped
public static class Car {
[JsonProperty("Type")]
public String type;
}
//example of json that is submitted
"Car":{
"Type":"Ferrari",
}

//where it gets mapped
public static class Car {
[JsonProperty("Type")]
public String type;
}
Hope thats help you understanding for what JsonProperty is used.
Want results from more Discord servers?
Add your server