With JSON.NET, you'd just need to put a JsonProperty
attribute on the property, like:
class Output
{
public string contact_id;
public string status;
public int is_test_data;
public DateTime datesubmitted;
[JsonProperty("[variable(\"STANDARD_GEOCOUNTRY\")]")]
public string variable_standard_geocountry; // <--- what should be this name for it to work?
}
This will now deserialize. This assumes that your JSON is properly formatted with those quotation marks, like:
{
"contact_id": "",
"status": "Partial",
"is_test_data": "1",
"datesubmitted": "2013-10-25 05:17:06",
"[variable(\"STANDARD_GEOCOUNTRY\")]": "Germany"
}