<?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 How to extract First Array value from Nested JSON Collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-First-Array-value-from-Nested-JSON-Collection/m-p/80432#M32157</link>
    <description>&lt;P&gt;Hi Team ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert JSON to CSV. for this I am first converting JSON to collection using JSON to collection(Skipping JArray) but I am getting output like below&lt;/P&gt;
&lt;P&gt;I basically need 3 columns for csv output : host, included and &lt;STRONG&gt;Instance&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I dont have issue in getting host and included but for instance, sometimes it has single value and sometime it has multiple in array&lt;/P&gt;
&lt;P&gt;I need instance column value ( If it has multiple values, it should fetch first value) .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help in extracting first value of instance from below collection ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;host ,included, instances[0]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18791.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18943i9DB4810DE8D1CFAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="18791.png" alt="18791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 05 Jan 2024 07:57:00 GMT</pubDate>
    <dc:creator>kirtish.trivedi</dc:creator>
    <dc:date>2024-01-05T07:57:00Z</dc:date>
    <item>
      <title>How to extract First Array value from Nested JSON Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-First-Array-value-from-Nested-JSON-Collection/m-p/80432#M32157</link>
      <description>&lt;P&gt;Hi Team ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert JSON to CSV. for this I am first converting JSON to collection using JSON to collection(Skipping JArray) but I am getting output like below&lt;/P&gt;
&lt;P&gt;I basically need 3 columns for csv output : host, included and &lt;STRONG&gt;Instance&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I dont have issue in getting host and included but for instance, sometimes it has single value and sometime it has multiple in array&lt;/P&gt;
&lt;P&gt;I need instance column value ( If it has multiple values, it should fetch first value) .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help in extracting first value of instance from below collection ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output&lt;/P&gt;
&lt;P style="text-align: center;"&gt;&lt;STRONG&gt;host ,included, instances[0]&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18791.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18943i9DB4810DE8D1CFAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="18791.png" alt="18791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kirtish Trivedi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Jan 2024 07:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-extract-First-Array-value-from-Nested-JSON-Collection/m-p/80432#M32157</guid>
      <dc:creator>kirtish.trivedi</dc:creator>
      <dc:date>2024-01-05T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract First Array value from Nested JSON Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-extract-First-Array-value-from-Nested-JSON-Collection/m-p/123855#M54185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/53291"&gt;@kirtish.trivedi&lt;/a&gt;&amp;nbsp; - you can follow below steps to achieve that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create one collection and named as tempcol&lt;BR /&gt;create another collection and named as finalCol&lt;BR /&gt;next, loop through your main collection&lt;BR /&gt;under loop use calculation stage to store instances in tempcol using maincol.instances store in tempcol&lt;BR /&gt;next, in templcol collection using collection manipulation object append one text column with value as host and the host value which is in loop working value&lt;BR /&gt;next, do the same step for included column&lt;BR /&gt;next, using collection manipulation object, append collection from tempCol to finalCol&lt;BR /&gt;next, clear/rest tempcol&lt;BR /&gt;loop will go on until last row&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 20:23:07 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-extract-First-Array-value-from-Nested-JSON-Collection/m-p/123855#M54185</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2025-12-08T20:23:07Z</dc:date>
    </item>
  </channel>
</rss>

