I have some Json that I want to parse to a c# object that can come through like this:
{
"SomeObject" : {
"name" : "something",
"birthMonth" : "may"
}
}
Or Like this:
{
"SomeObject" : {
"name" : "something",
"birthMonth" : 5
}
}
Is there a way I can model my SomeObject class so that the birthMonth property can be a string or an integer?