I'm having an issue with JsonConvert.SerializeObject when I try to serialize my object with:
var statementOfAccount = new
                {
                    main = new 
                    {
                        @xm = "https://api-path.com",
                        RESTHeader = new 
                        {
                            Responsibility = "Responsibility ",
                            RespApplication = "AR",
                            NLSLanguage = "AMERICAN"
                        }
                    }
                };
And giving me:
{
  "main": {
    "xm": "https://api-path.com",
    "RESTHeader": {
      "Responsibility": "Responsibility",
      "RespApplication": "AR",
      "NLSLanguage": "AMERICAN"
    }
  }
}
So basically it's removing the @ from @xm and please note that I can't change the name of the property so I need a solution that will serialize it as is.
 
     
    