title: Transforming JSON to XML without converting decimal to scientific notation
body: <p>I am trying to convert <code>JSON</code> to <code>XML</code> in middle ware tool. I am using <code>Jackson</code> libraries to do this transformation. The problem is that for decimal fields (length more than <code>8</code>) in <code>JSON</code>, the corresponding <code>XML</code> value is converted to scientific notation. For example <code>8765431002.13</code> is converted to <code>8.76543100213E8</code>.</p>
  
  <p>I can convert the scientific notation to normal decimal format if know the name of the field. But in my case, the middleware application will not be aware of field that is coming as decimal.</p>
  
  <pre><code>import com.fasterxml.jackson.databind.JsonNode;
  import com.fasterxml.jackson.databind.ObjectMapper;
  
  import com.fasterxml.jackson.dataformat.xml.XmlMapper;
  
  
  public class JSONDataformat {
  
         public static void main(String[] args) {
                // TODO Auto-generated method stub
                try {
                //String jsonString = "{\"Field1\":18629920.68,\"Field3\":\"test\", \"Field2\":\"null\"}";          
                  ObjectMapper objectMapper = new ObjectMapper();
                ObjectMapper xmlMapper = new XmlMapper();
                JsonNode tree = objectMapper.readTree(jsonString);
  
                String jsonAsXml = xmlMapper.writer().writeValueAsString(tree);
                System.out.println(jsonAsXml);
                }
                catch(Exception e) {e.printStackTrace(); }
  
         }
  
  }
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>&lt;ObjectNode xmlns=""&gt;&lt;Field1&gt;1.862992068E7&lt;/Field1&gt;&lt;Field3&gt;test&lt;/Field3&gt;&lt;Field2/&gt;&lt;/ObjectNode&gt;
  </code></pre>
  
  <p>I expected to get <code>&lt;Field1&gt;</code> value as <code>18629920.68</code> in above code.</p>