<?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: Params are getting picked in shuffled structure from function in Project Firefly Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430972#M538</link>
    <description>&lt;P&gt;As discussed in direct conversation: it's expected that the order of key-value pairs in a JSON object is not quaranteed. If the library consuming it requires a specific order in the&amp;nbsp;(stringified) JSON object, you could manually construct a raw string with the desired order, taking values from the original request body.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2021 11:26:31 GMT</pubDate>
    <dc:creator>duypnguyen</dc:creator>
    <dc:date>2021-11-11T11:26:31Z</dc:date>
    <item>
      <title>Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/429092#M534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here am trying to use actions has webhook listener and events are triggered from 3rd party where request will be in JSON structure.&lt;/P&gt;&lt;P&gt;When JSON params are picked from function its getting shuffled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex;&lt;/P&gt;&lt;P&gt;Expected:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"message_delivery_report"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"message_id"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp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&lt;BR /&gt;"channel": "Test",&lt;BR /&gt;"identity": "XXXXXXX"&lt;BR /&gt;},&lt;BR /&gt;"contact_id": "01F64Z48P3SPTX11B5B8G410N2",&lt;BR /&gt;"conversation_id": "01F64Z48R4CD1216GD0CRC0DDK",&lt;BR /&gt;"message_id": "01FJJY1FJDSKWN22RGMF23ZH5R",&lt;BR /&gt;"metadata": "",&lt;BR /&gt;"status": "QUEUED_ON_CHANNEL"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:00:36 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/429092#M534</guid>
      <dc:creator>Naveen_Srinivas</dc:creator>
      <dc:date>2021-10-26T09:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430535#M535</link>
      <description>&lt;P&gt;&lt;LI-USER uid="12116756"&gt;&lt;/LI-USER&gt;&amp;nbsp;Could you please help? I see&amp;nbsp;__ow_body is not present at all, is there any thing am missing on configuration?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 05:31:53 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430535#M535</guid>
      <dc:creator>Naveen_Srinivas</dc:creator>
      <dc:date>2021-11-08T05:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430581#M536</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17403759"&gt;&lt;/LI-USER&gt;&amp;nbsp;- regarding the different output order of JSON params, that's expected because it's a JSON object, not an array. So the order doesn't really matter here, because you get an item by `params['keyName'].&lt;/P&gt;&lt;P&gt;For your second question, your action gets a request body in JSON, so it automatically parses it to a JSON object. The "__ow_body" param is only available and useful for non-JSON request body. See&amp;nbsp;&lt;A href="https://github.com/apache/openwhisk/blob/master/docs/webactions.md#http-context" target="_blank"&gt;https://github.com/apache/openwhisk/blob/master/docs/webactions.md#http-context&lt;/A&gt;&amp;nbsp;for more info.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 11:22:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430581#M536</guid>
      <dc:creator>duypnguyen</dc:creator>
      <dc:date>2021-11-08T11:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430681#M537</link>
      <description>&lt;P&gt;Thanks for the reply, order matters to me since to authenticate the call we need to encrypt the raw body to match with signature which we will be received from header. Is there any alternate or work around approach to achieve my scenario(I want raw body without shuffled)?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 08:26:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430681#M537</guid>
      <dc:creator>Naveen_Srinivas</dc:creator>
      <dc:date>2021-11-09T08:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430972#M538</link>
      <description>&lt;P&gt;As discussed in direct conversation: it's expected that the order of key-value pairs in a JSON object is not quaranteed. If the library consuming it requires a specific order in the&amp;nbsp;(stringified) JSON object, you could manually construct a raw string with the desired order, taking values from the original request body.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 11:26:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/430972#M538</guid>
      <dc:creator>duypnguyen</dc:creator>
      <dc:date>2021-11-11T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Params are getting picked in shuffled structure from function</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/433171#M549</link>
      <description>&lt;P&gt;Yeah, we did requested our vendor to add custom headers to get this request done.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 07:06:05 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/params-are-getting-picked-in-shuffled-structure-from-function/m-p/433171#M549</guid>
      <dc:creator>Naveen_Srinivas</dc:creator>
      <dc:date>2021-12-02T07:06:05Z</dc:date>
    </item>
  </channel>
</rss>

