<?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 RE: I recommend that you see the… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77713#M29855</link>
    <description>Hi Astrid! I went through the same problem, and with me team we could develop this solution in a Calculation&lt;BR /&gt;&lt;BR /&gt;Replace(Replace(Left(Right([Json Body], Len([Json Body])-1), Len([Json Body])-2), "[[{", "[{"), "}]]", "}]")&lt;BR /&gt;&lt;BR /&gt;I hope it works!&lt;BR /&gt;&lt;BR /&gt;Best wishes!&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Federico Mignone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 19 Jul 2021 20:36:00 GMT</pubDate>
    <dc:creator>FedericoMignone</dc:creator>
    <dc:date>2021-07-19T20:36:00Z</dc:date>
    <item>
      <title>Utility-JSON issue</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77705#M29847</link>
      <description>Hi,

While working with the VBO 'Utility-JSON', I used both the actions(viz. JSON to Collection,Collection to JSON) given in the VBO and found that if the input is a json containing some field as an array,and if I use both theses actions one after the other ie(using JSON to collection first and then using Collection to Json to the sample collection) the output JSON message doesn't match the input JSON message.The array fields get wrapped in another array.Also the entire JSON object gets wrapped as an array.

Any solution to solve this issue?</description>
      <pubDate>Mon, 01 Jan 2018 21:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77705#M29847</guid>
      <dc:creator>PranavNayak</dc:creator>
      <dc:date>2018-01-01T21:56:00Z</dc:date>
    </item>
    <item>
      <title>I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77706#M29848</link>
      <description>I recommend that you see the JSON utility we provide as a starting point example - it works very well with simple web services (I have used it several times myself) but if your web service requires a non-standard or embeded structure than you may have to take the code Blue Prism provides and expand it into something that works for you.</description>
      <pubDate>Wed, 03 Jan 2018 18:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77706#M29848</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2018-01-03T18:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77707#M29849</link>
      <description>I'm facing the same issue currently - is there really no other way than programming the (de)serialization ​myself?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cheers Astrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Mar 2020 11:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77707#M29849</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2020-03-24T11:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77708#M29850</link>
      <description>Can you provide an example JSON Astrid? If a bespoke code solution is your best option, I've found using the&amp;nbsp;ExpandoObject relatively painless:&lt;BR /&gt;&lt;BR /&gt;Dim objJSON As Object = JsonConvert.DeserializeObject(Of ExpandoObject)(strJSON)&lt;BR /&gt;For Each thing As Object In objJSON.Level1.Level2.things&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'Do stuff here&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2020 10:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77708#M29850</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2020-03-25T10:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77709#M29851</link>
      <description>&lt;DIV class="uconBody"&gt;&lt;DIV style="page: WordSection1"&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN lang="DE-CH"&gt;Hi John,&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN lang="DE-CH"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;many thanks for your reply.&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&amp;nbsp;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;While trying to prepare an example, &lt;SPAN style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,sans-serif"&gt; &amp;nbsp;I noticed that the "JSON to Collection (skipping JArray)" action seems to resolve this issue. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,sans-serif"&gt;The only "problem" is now, that the "Collection to JSON" function adds a set of square brackets around the JSON string which the REST service I'm calling  doesn't like. So I need to remove them using a calculation stage. But the rest seems to work fine then.&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,sans-serif"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,sans-serif"&gt;Thx,&lt;/SPAN&gt;&lt;/P&gt; &lt;P style="margin: 0cm;margin-bottom: .0001pt;font-size: 11.0pt;font-family: &amp;quot;Calibri&amp;quot;,sans-serif"&gt;&lt;SPAN style="font-size:10.0pt;font-family:&amp;quot;Arial&amp;quot;,sans-serif"&gt;Astrid&lt;/SPAN&gt;&lt;/P&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------Original Message------&lt;BR /&gt;&lt;BR /&gt;Can you provide an example JSON Astrid? If a bespoke code solution is your best option, I've found using the&amp;nbsp;ExpandoObject relatively painless:&lt;BR /&gt;&lt;BR /&gt;Dim objJSON As Object = JsonConvert.DeserializeObject(Of ExpandoObject)(strJSON)&lt;BR /&gt;For Each thing As Object In objJSON.Level1.Level2.things&lt;BR /&gt;&amp;nbsp; &amp;nbsp;'Do stuff here&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Mar 2020 14:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77709#M29851</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2020-03-25T14:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77710#M29852</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;I was able to reproduce the issue now:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. I'm using "JSON to Collection (skipping JArray)" with following JSON as Input and store the output in a collection "Coll":&lt;BR /&gt;{"filterCriterias":[{"attribute":"originator","filterType":"EQUALS","value":"1234567"}],"sortCriteria":{"sortType" : "DESC","sortBy": "id"}}&lt;BR /&gt;&lt;BR /&gt;This returns a Collection containing 2 Collections, 1 row each.&lt;BR /&gt;&lt;BR /&gt;2. Then I'm using "Collection to JSON" with the collection "Coll" as Input which returns:&lt;BR /&gt;[{"filterCriterias":[{"attribute":"originator","filterType":"EQUALS","value":"1234567"}],"sortCriteria":[{"sortType":"DESC","sortBy":"id"}]}]&lt;BR /&gt;&lt;BR /&gt;So there are a few more square brackets in the resulting JSON string which my REST service doesn't accept.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'd like to build a generic "search" action where users can pass the search criteria in one collection as input parameter.&lt;BR /&gt;I'd then transform this Collection to a JSON and use this for the REST service call, but as described above, the "Collection to JSON" doesn't return a JSON which my REST service accepts...&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cheers Astrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Apr 2020 13:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77710#M29852</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2020-04-06T13:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77711#M29853</link>
      <description>​Hi Astrid,&lt;BR /&gt;&lt;BR /&gt;a while ago I re-worked the complete Json Library. Maybe you can give it a try. see here: &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?MessageKey=e2dade9e-6c74-44c5-926b-19d96737e3e0&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&amp;amp;tab=digestviewer#bm99b42456-253a-42cf-a2e1-26d95912a1be" target="_blank" rel="noopener"&gt;Using JSON VBO&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Tobias Arnold&lt;BR /&gt;RPA Developer&lt;BR /&gt;ITERGO GmbH&lt;BR /&gt;Europe/Duesseldorf&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Apr 2020 08:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77711#M29853</guid>
      <dc:creator>TobiasArnold</dc:creator>
      <dc:date>2020-04-07T08:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77712#M29854</link>
      <description>Hi Tobias.&lt;BR /&gt;&lt;BR /&gt;many thanks for your reply.&lt;BR /&gt;&lt;BR /&gt;I actually found out that making my Input Collection a "Single Row" collection solves my problem with the surrounding square brackets which my REST service doesn't like.&lt;BR /&gt;&lt;BR /&gt;I still tried your object quickly but it didn't convert the collection in the collection correctly. Instead of the parameter name it gave me "JSONArray"...&lt;BR /&gt;&lt;BR /&gt;Thanks anyway!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cheers Astrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Apr 2020 08:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77712#M29854</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2020-04-08T08:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77713#M29855</link>
      <description>Hi Astrid! I went through the same problem, and with me team we could develop this solution in a Calculation&lt;BR /&gt;&lt;BR /&gt;Replace(Replace(Left(Right([Json Body], Len([Json Body])-1), Len([Json Body])-2), "[[{", "[{"), "}]]", "}]")&lt;BR /&gt;&lt;BR /&gt;I hope it works!&lt;BR /&gt;&lt;BR /&gt;Best wishes!&lt;BR /&gt;Federico&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Federico Mignone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2021 20:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77713#M29855</guid>
      <dc:creator>FedericoMignone</dc:creator>
      <dc:date>2021-07-19T20:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77714#M29856</link>
      <description>Thanks, Federico!&lt;BR /&gt;&lt;BR /&gt;I don't remember anymore actually how I solved it in the end, but I think it involved defining the result collection as "single row" (which requires to define the fields as well of course, so it's not super generic anymore but it worked for my process...).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cheers Astrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jul 2021 07:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77714#M29856</guid>
      <dc:creator>astrid.stollberger</dc:creator>
      <dc:date>2021-07-20T07:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77715#M29857</link>
      <description>My global code from json vbo that should fix this issue: &lt;A href="https://pastebin.com/8m3KgFcN" target="test_blank"&gt;https://pastebin.com/8m3KgFcN&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;p.s. I think I also made it always treat datetime as local, because that is what I want most of the time.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2021 16:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77715#M29857</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2021-07-21T16:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: I recommend that you see the…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77716#M29858</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/769"&gt;@AndreyKudinov&lt;/a&gt; Thanks for shared!!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Emerson Ferreira&lt;BR /&gt;Sr Business Analyst&lt;BR /&gt;Avanade Brasil&lt;BR /&gt;Recife&lt;BR /&gt;+5581988869544&lt;BR /&gt;If my answer helped you? Mark as useful!&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Jul 2021 19:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Utility-JSON-issue/m-p/77716#M29858</guid>
      <dc:creator>EmersonF</dc:creator>
      <dc:date>2021-07-21T19:19:00Z</dc:date>
    </item>
  </channel>
</rss>

