Question Background:
I am calling an API that I have no control over. It is return a JSON response which contains property names with symbols such as '@'.
The Issue:
This is an example of the JSON returned:
{"@currencyId":"USD", "__value__":"7.85"}
I am converting this to a C# POCO such as:
public Class Obj
{
public string @currencyId {get; set;}
public string __value__ {get; set;}
}
Even before I am able to use any library such as JSON.NET this is causing errors.
What is the best method to convert the response to property names that can be used with my C# POCO?