title: JSON in XML attribute
body: <p>I have to pass some data from a C# module to a Java-script module.</p>
  
  <p>Now, There's this middle-man module that I don't control, and ultimately does is calls the external(c#) module, and returns back an xml structure, with the data from the c# module inside an XML attribute. </p>
  
  <p>I tried to put a JSON string, <code>"\/Date(1350323947917)\/"</code></p>
  
  <p>which came from</p>
  
  <pre><code>    DateTime dt = DateTime.Now;
  
      JavaScriptSerializer serailzer = new JavaScriptSerializer();
      string dateTimeString = serailzer.Serialize(dt);
  </code></pre>
  
  <p>And it didn't fit into the attribute as valid XML.</p>
  
  <p>What I could try to do is trim the quotes off the end of the string, but I'm not sure whether or not that would make it invalid JSON</p>
  
  <p>My question is, Should I attempt to continue with this JSON route, or there any other pitfalls that I'm missing? </p>
  
  <p><strong>EDIT:</strong>  I'd like to reiterate that It is not my program which is generating the XML.  </p>