<?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 Reading dynamic json format in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71214#M23819</link>
    <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am using dot notation to extract JSON response property as mentioned below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17869.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18020iC9CDEB32E737CED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="17869.png" alt="17869.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But the challenge here is id i.e. 123 is dynamic and when I am dynamically passing variable its not accepting it and throwing below error:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17870.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18022iB73D7AB04FA69496/image-size/large?v=v2&amp;amp;px=999" role="button" title="17870.png" alt="17870.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Can anybody help please ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chinu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chinu Bansal&lt;BR /&gt;Developer&lt;BR /&gt;Zensar&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Mar 2021 13:34:00 GMT</pubDate>
    <dc:creator>ChinuBansal</dc:creator>
    <dc:date>2021-03-25T13:34:00Z</dc:date>
    <item>
      <title>Reading dynamic json format</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71214#M23819</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I am using dot notation to extract JSON response property as mentioned below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17869.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18020iC9CDEB32E737CED9/image-size/large?v=v2&amp;amp;px=999" role="button" title="17869.png" alt="17869.png" /&gt;&lt;/span&gt;&lt;BR /&gt;But the challenge here is id i.e. 123 is dynamic and when I am dynamically passing variable its not accepting it and throwing below error:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17870.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18022iB73D7AB04FA69496/image-size/large?v=v2&amp;amp;px=999" role="button" title="17870.png" alt="17870.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Can anybody help please ?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Chinu&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chinu Bansal&lt;BR /&gt;Developer&lt;BR /&gt;Zensar&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71214#M23819</guid>
      <dc:creator>ChinuBansal</dc:creator>
      <dc:date>2021-03-25T13:34:00Z</dc:date>
    </item>
    <item>
      <title>RE: Reading dynamic json format</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71215#M23820</link>
      <description>/&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/45831"&gt;@ChinuBansal&lt;/a&gt; - you could use&amp;nbsp; extract the value till JSON:Array in temp collection followed by &lt;EM&gt;Get collection field&lt;/EM&gt; Action. add a logic to identify the field name as per requirement.​&lt;BR /&gt;&lt;A data-tag-text="coinchallenge" data-sign="#" class="user-content-hashtag" href="https://community.blueprism.com/search?s=%23coinchallenge&amp;amp;executesearch=true" data-tag-key="c18aec81-8165-4d0f-96d0-9657065b3b81"&gt;#coinchallenge&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tushar Varshney&lt;BR /&gt;Senior Consultant - Intelligent Automation&lt;BR /&gt;Ernst &amp;amp; Young India&lt;BR /&gt;+91-9880188366&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 06:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71215#M23820</guid>
      <dc:creator>TusharVarshney</dc:creator>
      <dc:date>2021-03-26T06:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Reading dynamic json format</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71216#M23821</link>
      <description>I'd agree with Tushar's suggestion. Use a calculation stage to extract the collection up to the dynamic number, such as [col_JSON_Data.data.results.JSON:Array] and store that into a new different collection. Then you can loop through that new collection if needed and you can get data out of the fields by using the object 'Utility - Collection Manipulation' with the action 'Read Collection Field' which lets you dynamically specify the Field Name.&lt;BR /&gt;&lt;BR /&gt;Edit: Reading your post again, it occurs to me that part of the issue is that it looks like you're actually trying to get a collection instead of a specific value even at the bottom of the hierarchy of nested collections. I'd say just use Calculation stages in order to extract nested collections, and that should get you what you need even if it feels a bit clunky.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71216#M23821</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2021-03-26T19:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Reading dynamic json format</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71217#M23822</link>
      <description>Were you able to figure out this out? I'm facing the same issue.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sandeep Nalla&lt;BR /&gt;Senior Consultant&lt;BR /&gt;Lateetud Inc&lt;BR /&gt;America/New_York&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71217#M23822</guid>
      <dc:creator>SandeepNalla</dc:creator>
      <dc:date>2021-11-04T20:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Reading dynamic json format</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71218#M23823</link>
      <description>Ok, so to be honest the built in methods for interacting with JSON in BP are lacking. As you can see it does not handle dynamic JSON well and there is actually a few other problems (eg. JSON with Property Names that have periods in them) These will actually be put in Collection Field Headers so that you end up with a Collection Field Header named something like 'Email.Id' which if you then try to use dot notation with.... well, you'll have a nice headache. I'd strong recommended using a library like JSON.NET or Newtonsoft and building custom code stages for advanced JSON actions. For instance, you might want to build an action that checks if a JSON Property exists ^ would solve your problem, or to extract a specific value at a specific property, these are all easily doable with Newtonsoft and some C# or VB.NET. A lot of APIs that return JSON will return it dynamically simply to conserve processing power server side so in the long run this is the more scalable approach to things. If however this is truly a one off for you you're probably best doing some manipulation with collections and strings like people discussed above.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Erin Connerley&lt;BR /&gt;Automation Consultant&lt;BR /&gt;Agilify Automation&lt;BR /&gt;America/Indiana/Indianapolis&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2021 14:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Reading-dynamic-json-format/m-p/71218#M23823</guid>
      <dc:creator>ErinConnerley</dc:creator>
      <dc:date>2021-11-05T14:43:00Z</dc:date>
    </item>
  </channel>
</rss>

