<?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 Parsing Json file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parsing-Json-file/m-p/671083#M36485</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have to import an input json file on a daily basis that has below structure,&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;"/profile/users":[&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"id":"001","name":"Sam"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"id":"002","name":"Dav"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;],&lt;/P&gt;&lt;P&gt;&amp;nbsp;"/profile/usernames":[&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;{"id":"001","usrnm":"sam123"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;{"id":"002","usrnm":"dav009"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a map file to parse the above json, but i was not able to specify path for above users and user names array as that have "&lt;STRONG&gt;/&lt;/STRONG&gt;" in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"DATASETS": [&lt;BR /&gt;{&lt;BR /&gt;"DSNAME": "users",&lt;BR /&gt;&lt;STRONG&gt;"TABLEPATH": "/root/profile/users",&lt;/STRONG&gt;&lt;BR /&gt;"VARIABLES": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"NAME": "id",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"TYPE": "NUMERIC",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"PATH": "&lt;STRONG&gt;/root/profile/users/id"&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to import any data due to the table path. I am able to import and see data when I change the array name as&amp;nbsp;&lt;STRONG&gt;/profile/users -&amp;gt;&amp;nbsp;/profile_users &lt;/STRONG&gt;and update path as&amp;nbsp;&lt;STRONG&gt;/root/profile/users/id -&amp;gt;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;/root/profile_users/id.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i read the file as is, sincei will not be able to change it on a daily basis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 15:49:57 GMT</pubDate>
    <dc:creator>Sukesh33</dc:creator>
    <dc:date>2020-07-21T15:49:57Z</dc:date>
    <item>
      <title>Parsing Json file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parsing-Json-file/m-p/671083#M36485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We have to import an input json file on a daily basis that has below structure,&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;"/profile/users":[&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"id":"001","name":"Sam"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{"id":"002","name":"Dav"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;],&lt;/P&gt;&lt;P&gt;&amp;nbsp;"/profile/usernames":[&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;{"id":"001","usrnm":"sam123"},&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;{"id":"002","usrnm":"dav009"}&lt;/P&gt;&lt;P&gt;&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a map file to parse the above json, but i was not able to specify path for above users and user names array as that have "&lt;STRONG&gt;/&lt;/STRONG&gt;" in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"DATASETS": [&lt;BR /&gt;{&lt;BR /&gt;"DSNAME": "users",&lt;BR /&gt;&lt;STRONG&gt;"TABLEPATH": "/root/profile/users",&lt;/STRONG&gt;&lt;BR /&gt;"VARIABLES": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"NAME": "id",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"TYPE": "NUMERIC",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"PATH": "&lt;STRONG&gt;/root/profile/users/id"&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;]}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to import any data due to the table path. I am able to import and see data when I change the array name as&amp;nbsp;&lt;STRONG&gt;/profile/users -&amp;gt;&amp;nbsp;/profile_users &lt;/STRONG&gt;and update path as&amp;nbsp;&lt;STRONG&gt;/root/profile/users/id -&amp;gt;&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;/root/profile_users/id.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i read the file as is, sincei will not be able to change it on a daily basis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Parsing-Json-file/m-p/671083#M36485</guid>
      <dc:creator>Sukesh33</dc:creator>
      <dc:date>2020-07-21T15:49:57Z</dc:date>
    </item>
  </channel>
</rss>

