<?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 Failure to parse incoming JSON in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167425#M3762</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to parse a json event in geoevent 10.7.1 using a field mapper, in order to flatten the structure and be able to access the indexed objects, yet i keep failling.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Here's how my field mpper looks like :&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapper.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39732iF8E65C614C860B82/image-size/large?v=v2&amp;amp;px=999" role="button" title="mapper.PNG" alt="mapper.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, instead of getting the simple structure as defined in my target geoevent definition, i keep getting the initial structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391" target="_blank" rel="noopener"&gt;@RJSunderman&lt;/A&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/95633" target="_self"&gt;&lt;SPAN class=""&gt;EricIronside,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/276336" target="_self"&gt;&lt;SPAN class=""&gt;DanielCota1&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;‎&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 09:18:48 GMT</pubDate>
    <dc:creator>kavi88</dc:creator>
    <dc:date>2022-09-21T09:18:48Z</dc:date>
    <item>
      <title>Failure to parse incoming JSON</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167425#M3762</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to parse a json event in geoevent 10.7.1 using a field mapper, in order to flatten the structure and be able to access the indexed objects, yet i keep failling.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Here's how my field mpper looks like :&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapper.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39732iF8E65C614C860B82/image-size/large?v=v2&amp;amp;px=999" role="button" title="mapper.PNG" alt="mapper.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, instead of getting the simple structure as defined in my target geoevent definition, i keep getting the initial structure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas please ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/115391" target="_blank" rel="noopener"&gt;@RJSunderman&lt;/A&gt;&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/95633" target="_self"&gt;&lt;SPAN class=""&gt;EricIronside,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/276336" target="_self"&gt;&lt;SPAN class=""&gt;DanielCota1&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;‎&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 09:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167425#M3762</guid>
      <dc:creator>kavi88</dc:creator>
      <dc:date>2022-09-21T09:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to parse incoming JSON</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167471#M3763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/504632"&gt;@kavi88&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I believe the issue is how you're specifying the array.&amp;nbsp; Try &lt;STRONG&gt;data.slots[0].id&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Here's what worked for me:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Flattened the output GeoEvent Definition using the following &lt;A href="https://community.esri.com/t5/arcgis-geoevent-server-documents/ungrouping-flatenning-geoevent-definitions/ta-p/920866" target="_self"&gt;script&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Created a Field Mapper as below:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JakeSkinner_0-1650892702730.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39749iE4EED5B1A1A9889F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JakeSkinner_0-1650892702730.png" alt="JakeSkinner_0-1650892702730.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167471#M3763</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2022-04-25T13:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to parse incoming JSON</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167475#M3764</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take your source data and run it through &lt;A href="https://jsonlint.com/" target="_blank" rel="noopener"&gt;https://jsonlint.com/&lt;/A&gt;.&amp;nbsp; You will see that you have an array inside the data object but the data object is not an array.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So data.slots[0].id looks like it might make more sense...&amp;nbsp; But I also have issues when working with arrays inside GeoEvent so let us know..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:28:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167475#M3764</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2022-04-25T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Failure to parse incoming JSON</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167507#M3766</link>
      <description>&lt;P&gt;hello &lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/140376" target="_self"&gt;&lt;SPAN class=""&gt;JeffSilberberg&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;, &lt;SPAN class=""&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/10527" target="_self"&gt;&lt;SPAN class=""&gt;JakeSkinner,&lt;/SPAN&gt;&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank you so much for your fast reply. it's now working as i want it !&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 14:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/failure-to-parse-incoming-json/m-p/1167507#M3766</guid>
      <dc:creator>kavi88</dc:creator>
      <dc:date>2022-04-25T14:25:58Z</dc:date>
    </item>
  </channel>
</rss>

