<?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 Access JSON response with special characters in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/access-json-response-with-special-characters/m-p/35561#M15021</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I'm using a Rest call task in APS 1.9 and fetching some data from an external service; everything is good!; I'm getting the JSON below as response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"mainNode": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"id": "12345",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "properties": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "LastModified": "2020-03-12",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;": "Internal Document"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I need to capture the data in the Response Mapping, so I'm using the property names as below:&lt;/P&gt;&lt;P&gt;- mainNode.id&lt;BR /&gt;- mainNode.properties.LastModified&lt;BR /&gt;- mainNode.properties."{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The first two are working fine, butthe last one is not capturing the value; I've also tried:&lt;/P&gt;&lt;P&gt;- mainNode.properties["{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;"]&lt;/P&gt;&lt;P&gt;but didn't work neither. Dows anybody know how to get this value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 16:24:08 GMT</pubDate>
    <dc:creator>jose_leon_coupa</dc:creator>
    <dc:date>2020-03-16T16:24:08Z</dc:date>
    <item>
      <title>Access JSON response with special characters</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/access-json-response-with-special-characters/m-p/35561#M15021</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I'm using a Rest call task in APS 1.9 and fetching some data from an external service; everything is good!; I'm getting the JSON below as response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"mainNode": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"id": "12345",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "properties": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "LastModified": "2020-03-12",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;": "Internal Document"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I need to capture the data in the Response Mapping, so I'm using the property names as below:&lt;/P&gt;&lt;P&gt;- mainNode.id&lt;BR /&gt;- mainNode.properties.LastModified&lt;BR /&gt;- mainNode.properties."{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The first two are working fine, butthe last one is not capturing the value; I've also tried:&lt;/P&gt;&lt;P&gt;- mainNode.properties["{&lt;A href="http://www.somesite.com/version/1.0}DocumentType" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.somesite.com/version/1.0}DocumentType&lt;/A&gt;"]&lt;/P&gt;&lt;P&gt;but didn't work neither. Dows anybody know how to get this value?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 16:24:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/access-json-response-with-special-characters/m-p/35561#M15021</guid>
      <dc:creator>jose_leon_coupa</dc:creator>
      <dc:date>2020-03-16T16:24:08Z</dc:date>
    </item>
  </channel>
</rss>

