I have been given a JSON definition something along the lines of..
{
"the.data" : {
"first.name": "Joe",
"last.name": "Smith"
}
}
and i've made a class in c# to add my data too, such as
public class TheData
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
public class RootObject
{
public TheData TheData { get; set; }
}
Now the web service that i have to send this payload to, is expecting The.Data, and First.Name, as well as Last.Name
How can i 'change' the name definitions? Before transmitting?
Can i somehow override the name?