title: Can't serialize JSON properly using JSON.NET
body: <p>I using JSON.net to convert very complex XML to JSON and deserialize it to C#.</p>
  
  <pre><code>string text = await blockBlob2.DownloadTextAsync();
  
  XmlDocument doc = new XmlDocument();
  doc.LoadXml(text);
  string json = Newtonsoft.Json.JsonConvert.SerializeXmlNode(doc);
  
  RootObject x = JsonConvert.DeserializeObject&lt;RootObject&gt;(json);
  string output = JsonConvert.SerializeObject(x);
  </code></pre>
  
  <p>I faced with issue with "@" symbols ocurring in JSON after conversion from XML. When I try to serialize it, all structure is works, but field's content become null.
  <a href="https://i.stack.imgur.com/3RuX1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3RuX1.png" alt="@ added after automatically, I don&#39;t know why"></a></p>
  
  <p>and then SerializeObject doesn't work properly: <a href="https://i.stack.imgur.com/uyF7X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uyF7X.png" alt="enter image description here"></a></p>
  
  <p>RootObjectClass:</p>
  
  <pre><code>    /* 
   Licensed under the Apache License, Version 2.0
  
   http://www.apache.org/licenses/LICENSE-2.0
   */
  using System;
  using System.Xml.Serialization;
  using System.Collections.Generic;
  namespace WorkerRole1
  {
  
      public class ItineraryOption
      {
          public string ODRef { get; set; }
          public string From { get; set; }
          public string To { get; set; }
          public string Date { get; set; }
          public string SeatsAvailable { get; set; }
          public string TravelTime { get; set; }
          public string ItineraryRef { get; set; }
          public object FlightSegment { get; set; }
      }
  
      public class ItineraryOptions
      {
          public List&lt;ItineraryOption&gt; ItineraryOption { get; set; }
      }
  
      public class BookingGuidelines
      {
          public string RussianNamesSupported { get; set; }
      }
  
      public class DeepLink
      {
          public string DeviceType { get; set; }
          //public string __invalid_name__#cdata-section { get; set; }
     // public string __invalid_name__#text { get; set; }
  }
  
      public class DeepLinks
      {
          public List&lt;DeepLink&gt; DeepLink { get; set; }
      }
  
      public class ShopOption
      {
          public string OptionRef { get; set; }
          public string Currency { get; set; }
          public string Total { get; set; }
          public string Airlines { get; set; }
          public ItineraryOptions ItineraryOptions { get; set; }
          public BookingGuidelines BookingGuidelines { get; set; }
          public DeepLinks DeepLinks { get; set; }
      }
  
      public class ShopOptions
      {
          public List&lt;ShopOption&gt; ShopOption { get; set; }
      }
  
      public class SIGAirShopRS
      {
          public string CustomerID { get; set; }
          public string SessionID { get; set; }
          public string ProcessingTime { get; set; }
          public string SIGVersion { get; set; }
          public string SchemaVersion { get; set; }
          public string BuildDate { get; set; }
          public string Result { get; set; }
          public ShopOptions ShopOptions { get; set; }
      }
  
      public class SIGResponse
      {
          public string xmlns { get; set; }
          public SIGAirShopRS SIG_AirShopRS { get; set; }
      }
  
      public class RootObject
      {
          public SIGResponse SIG_Response { get; set; }
      }
  
  }
  </code></pre>
  
  <p>sample of XML:
  <a href="https://drive.google.com/file/d/0B3CEquA-V15lamN5UVRWeDdzR2M/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/0B3CEquA-V15lamN5UVRWeDdzR2M/view?usp=sharing</a></p>