<?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 Api Response with Array of objects not mapped properly in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/api-response-with-array-of-objects-not-mapped/m-p/1398912#M4152</link>
    <description>&lt;P&gt;Hi Community,&lt;BR /&gt;&lt;BR /&gt;I want to map an Api Json response to a defined definition to add it as a feature to a layer.&lt;/P&gt;&lt;P&gt;Definition of Input source is auto generated which is correct on validation but when checking the values on sampler it sets all the objects of objects and array of Json to null resulting in data loss and incorrect mapping.&lt;BR /&gt;&lt;BR /&gt;I have attached response from API and Geo Event Definition.&lt;BR /&gt;&lt;BR /&gt;Please let me know how I can fix this.&lt;BR /&gt;&lt;BR /&gt;Input Connector's input on sampler before adding any processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jauhari_mani_0-1711017704363.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98621i7824092510C5E2F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jauhari_mani_0-1711017704363.png" alt="jauhari_mani_0-1711017704363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Auto Generated Definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jauhari_mani_1-1711017943427.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98622iEE6A78DD572E4111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jauhari_mani_1-1711017943427.png" alt="jauhari_mani_1-1711017943427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 10:49:27 GMT</pubDate>
    <dc:creator>jauhari_mani</dc:creator>
    <dc:date>2024-03-21T10:49:27Z</dc:date>
    <item>
      <title>Api Response with Array of objects not mapped properly</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/api-response-with-array-of-objects-not-mapped/m-p/1398912#M4152</link>
      <description>&lt;P&gt;Hi Community,&lt;BR /&gt;&lt;BR /&gt;I want to map an Api Json response to a defined definition to add it as a feature to a layer.&lt;/P&gt;&lt;P&gt;Definition of Input source is auto generated which is correct on validation but when checking the values on sampler it sets all the objects of objects and array of Json to null resulting in data loss and incorrect mapping.&lt;BR /&gt;&lt;BR /&gt;I have attached response from API and Geo Event Definition.&lt;BR /&gt;&lt;BR /&gt;Please let me know how I can fix this.&lt;BR /&gt;&lt;BR /&gt;Input Connector's input on sampler before adding any processor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jauhari_mani_0-1711017704363.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98621i7824092510C5E2F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jauhari_mani_0-1711017704363.png" alt="jauhari_mani_0-1711017704363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Auto Generated Definition:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jauhari_mani_1-1711017943427.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/98622iEE6A78DD572E4111/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jauhari_mani_1-1711017943427.png" alt="jauhari_mani_1-1711017943427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 10:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/api-response-with-array-of-objects-not-mapped/m-p/1398912#M4152</guid>
      <dc:creator>jauhari_mani</dc:creator>
      <dc:date>2024-03-21T10:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Api Response with Array of objects not mapped properly</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/api-response-with-array-of-objects-not-mapped/m-p/1418850#M4182</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/641713"&gt;@jauhari_mani&lt;/a&gt;&amp;nbsp;--&lt;/P&gt;&lt;P&gt;Please see my &lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-poll-an-external-website-for-json/m-p/1417888/highlight/true#M4174" target="_blank" rel="noopener"&gt;reply&lt;/A&gt;&amp;nbsp; to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/693794"&gt;@RipaliBatra&lt;/a&gt;&amp;nbsp;in the thread: &lt;LI-MESSAGE title="GeoEvent-Poll an External Website for JSON" uid="1401957" url="https://community.esri.com/t5/arcgis-geoevent-server-questions/geoevent-poll-an-external-website-for-json/m-p/1401957#U1401957" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;&lt;P&gt;Given the rich hierarchical structure of the JSON from the&amp;nbsp;&lt;A href="https://waqi.info/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://waqi.info&lt;/A&gt;&amp;nbsp;web service you really should not rely on the&amp;nbsp;&lt;EM&gt;GeoEvent Sampler&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for a good representation of the data. The sampler struggles when given complex hierarchical JSON.&lt;/P&gt;&lt;P&gt;A better approach is to create one or more&amp;nbsp;&lt;EM&gt;Write to a JSON File&lt;/EM&gt;&amp;nbsp;outputs and use them to log the event records emitted from different processors along your configured event processing workflow.&lt;/P&gt;&lt;P&gt;-- RJ&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 17:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/api-response-with-array-of-objects-not-mapped/m-p/1418850#M4182</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2024-05-03T17:06:46Z</dc:date>
    </item>
  </channel>
</rss>

