<?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 Invalid Json caused by characters in the description in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/invalid-json-caused-by-characters-in-the-description/m-p/273377#M226507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a webscript that returns a list of files as json. When a file has a description that has a line break in it then when I try to decode the json on the other side it is invalid. Is there a way to json ecode the description string in the ftl template? or in some other way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 20:00:29 GMT</pubDate>
    <dc:creator>dallinns</dc:creator>
    <dc:date>2012-03-08T20:00:29Z</dc:date>
    <item>
      <title>Invalid Json caused by characters in the description</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-json-caused-by-characters-in-the-description/m-p/273377#M226507</link>
      <description>I have a webscript that returns a list of files as json. When a file has a description that has a line break in it then when I try to decode the json on the other side it is invalid. Is there a way to json ecode the description string in the ftl template? or in some other way?</description>
      <pubDate>Thu, 08 Mar 2012 20:00:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-json-caused-by-characters-in-the-description/m-p/273377#M226507</guid>
      <dc:creator>dallinns</dc:creator>
      <dc:date>2012-03-08T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Json caused by characters in the description</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-json-caused-by-characters-in-the-description/m-p/273378#M226508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This should suit your needs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_json_string" rel="nofollow noopener noreferrer"&gt;http://freemarker.sourceforge.net/docs/ref_builtins_string.html#ref_builtin_json_string&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you'll end up with something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;${description?json_string});&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 08:12:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-json-caused-by-characters-in-the-description/m-p/273378#M226508</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2012-03-09T08:12:23Z</dc:date>
    </item>
  </channel>
</rss>

