<?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 Re: Parse json from alfresco api in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50625#M19362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The jsonUtils object is total crap, has a lot of bugs (though mostly with converting objects to JSON) and the values it creates are not 100% native objects - I advise everyone to never use it. Using native JSON parsing is always preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem in this case seems to be a lack of understanding of how properties in JavaScript objects can be accessed.&lt;/P&gt;&lt;P&gt;Instead of:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;json&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;http&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;ourFirm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;cz&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;model&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;someFirm&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;3.0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;prejimka&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;stavHodnoceni&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the proper use would be&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;json&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;['&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;http&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;ourFirm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;cz&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;model&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;someFirm&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;3.0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;prejimka&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;stavHodnoceni']&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and et voila, no problems with the slashes or any other characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Oct 2018 12:54:24 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-10-14T12:54:24Z</dc:date>
    <item>
      <title>Parse json from alfresco api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50623#M19360</link>
      <description>Hi everyone,&amp;nbsp;a need parse son from alfresco API, but I have problem with two slashes in URL model address. How can I get value from "prejimka.stavHodnoceni"? &amp;nbsp;Can anyone help me ?&amp;nbsp;My var nazevSlozky = null;var result = remote.call("/api/metadata?nodeRef=workspace://SpacesStore/7d2eab73-9500-406a-bdb</description>
      <pubDate>Sat, 13 Oct 2018 06:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50623#M19360</guid>
      <dc:creator>wity</dc:creator>
      <dc:date>2018-10-13T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parse json from alfresco api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50624#M19361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you in the right context to access the jsonUtils root object?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/6.0/references/api-ws-obj-jsonUtils.html" title="https://docs.alfresco.com/6.0/references/api-ws-obj-jsonUtils.html" rel="nofollow noopener noreferrer"&gt;jsonUtils | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2018 14:39:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50624#M19361</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2018-10-13T14:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Parse json from alfresco api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50625#M19362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The jsonUtils object is total crap, has a lot of bugs (though mostly with converting objects to JSON) and the values it creates are not 100% native objects - I advise everyone to never use it. Using native JSON parsing is always preferable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem in this case seems to be a lack of understanding of how properties in JavaScript objects can be accessed.&lt;/P&gt;&lt;P&gt;Instead of:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;json&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;http&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;ourFirm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;cz&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;model&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;someFirm&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;3.0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;prejimka&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;stavHodnoceni&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the proper use would be&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;json&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;properties&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;['&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;{&lt;/SPAN&gt;http&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;ourFirm&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;cz&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;model&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;someFirm&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;3.0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;}&lt;/SPAN&gt;prejimka&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;stavHodnoceni']&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and et voila, no problems with the slashes or any other characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2018 12:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50625#M19362</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-10-14T12:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parse json from alfresco api</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50626#M19363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..gut hingeschaut - ich hatte den Codeteil auf dem iPad gar nicht richtig gesehen..&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2018 17:17:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/parse-json-from-alfresco-api/m-p/50626#M19363</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2018-10-14T17:17:40Z</dc:date>
    </item>
  </channel>
</rss>

