<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic JSON and number format in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257921#M211051</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a slight problem in a JSON webscript. This is a java backed web script and I return a set of POJO to the freemarker template. SOme attributes of the object are int and float. However, freemarker formats number and introduces separators for thousands which leads to errors when parsing the JSON stream. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the question is simple: How can I prevent Freemarker from formatting numbers when not necessary?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Feb 2011 17:32:27 GMT</pubDate>
    <dc:creator>orichaud</dc:creator>
    <dc:date>2011-02-07T17:32:27Z</dc:date>
    <item>
      <title>JSON and number format</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257921#M211051</link>
      <description>Hi,I have a slight problem in a JSON webscript. This is a java backed web script and I return a set of POJO to the freemarker template. SOme attributes of the object are int and float. However, freemarker formats number and introduces separators for thousands which leads to errors when parsing the J</description>
      <pubDate>Mon, 07 Feb 2011 17:32:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257921#M211051</guid>
      <dc:creator>orichaud</dc:creator>
      <dc:date>2011-02-07T17:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSON and number format</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257922#M211052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you try something like this ${myNumber?c} ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;?c added to your variable is exactly what you need, it outputs numbers readable by computers&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; &lt;/SPAN&gt;&lt;A href="http://freemarker.sourceforge.net/docs/ref_builtins_number.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.sourceforge.net/docs/ref_builtins_number.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 20:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257922#M211052</guid>
      <dc:creator>sufo</dc:creator>
      <dc:date>2011-02-08T20:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: JSON and number format</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257923#M211053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks it works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 15:47:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/json-and-number-format/m-p/257923#M211053</guid>
      <dc:creator>orichaud</dc:creator>
      <dc:date>2011-02-09T15:47:57Z</dc:date>
    </item>
  </channel>
</rss>

