title: convert a Json value to Integer with Newtonsoft
body: <p>I am using the following code to add an attribute to my xml to designate that this node should return an Integer value when using JsonConvert.SerializeXmlNode.</p>
  
  <p>I have incorporated the update from Newtonsoft into my referenced dll.</p>
  
  <p>I am using the following code to add the attribute:</p>
  
  <pre><code>ele.SetAttribute("Integer", "http://james.newtonking.com/projects/json", "true");
  </code></pre>
  
  <p>where <code>ele</code> comes from <code>XmlElement ele = node as XmlElement;</code></p>
  
  <p>The result always ends up with something like this:</p>
  
  <pre><code> "id": {
          "@Type": "Integer",
          "#text": "759263947"
        },
  </code></pre>
  
  <p>but what I need is</p>
  
  <pre><code>"id": 759263947
  </code></pre>
  
  <p>Please note that I use the exact same syntax to identify an an Array:</p>
  
  <pre><code>ele.SetAttribute("Array", "http://james.newtonking.com/projects/json", "true");
  </code></pre>
  
  <p>which is working just fine.</p>
  
  <p>Laura</p>