<?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: Parsing Json from webhook in Talend Cloud in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337799#M106107</link>
    <description>&lt;P&gt;If you don't escape  or remove the double-quotes, it is in invalid json string, tExtractJsonField can't parse it.  I'm afraid what you can do is to remove the double-quotes if there are double-quotes surrounding the json body in the job. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Mar 2023 00:58:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-25T00:58:23Z</dc:date>
    <item>
      <title>Parsing Json from webhook in Talend Cloud</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337796#M106104</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set up a job trigerred by a webhook, and I am having trouble parsing the body of the request I'm sending to the job.&lt;/P&gt;&lt;P&gt;The body I am sending to the job looks like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fHXrGAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136918i5EB4DF07946E34C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fHXrGAAW.png" alt="0695b00000fHXrGAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my resource_webhook_payload variable look like this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tLogRow_2 - Content of row 1: [{"data":"{"testKey1" : "test1" ,"testKey2" : "test2"}","type":"application/json"}]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can see that there are now double-quotes surrounding the json body.  I am then trying to parse each json keys, but I am failing to do so because of these double-quotes : when using tExtractJsonFields, I am getting the error &lt;/P&gt;&lt;P&gt;tExtractJSONFields_1 - Cannot determine next state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I escape the double-quotes in my request by using "\", I am able to parse the body properly : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fHXs4AAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148853iFF34A9B365902407/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fHXs4AAG.png" alt="0695b00000fHXs4AAG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to be able to parse the request without having to escape every double-quotes in the request body.&lt;/P&gt;&lt;P&gt;Does anyone know the proper way to parse the &lt;/P&gt;&lt;P&gt;resource_webhook_payload variable ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337796#M106104</guid>
      <dc:creator>fabienb1</dc:creator>
      <dc:date>2024-11-15T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Json from webhook in Talend Cloud</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337797#M106105</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is an invalid json format for tExtractJsonFields component parsing, try to add escape char "\" to the string before tExtractJsonFields in the job. eg:&lt;/P&gt;&lt;P&gt;....tJavaRow--main--tExtractJsonFields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;output_row.columnName=input_row.columnName.replace("\"testKey1\"","\\\"testKey1\\\"").replace("\"testKey2\"","\\\"testKey2\\\"");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 02:09:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337797#M106105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-21T02:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Json from webhook in Talend Cloud</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337798#M106106</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. &lt;/P&gt;&lt;P&gt;However, do you know if there is another way to parse the resource_webhook_payload&amp;nbsp;without having to manually escape the double-quotes ? &lt;/P&gt;&lt;P&gt;The json body I am sending initially is properly formated, for example : &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"testKey1":&amp;nbsp;"testValue1",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"testKey2":&amp;nbsp;"testValue2"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;So I would like to be able to use this directly, without having to manually remove the double-quotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 16:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337798#M106106</guid>
      <dc:creator>fabienb1</dc:creator>
      <dc:date>2023-03-24T16:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Json from webhook in Talend Cloud</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337799#M106107</link>
      <description>&lt;P&gt;If you don't escape  or remove the double-quotes, it is in invalid json string, tExtractJsonField can't parse it.  I'm afraid what you can do is to remove the double-quotes if there are double-quotes surrounding the json body in the job. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 00:58:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337799#M106107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-25T00:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing Json from webhook in Talend Cloud</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337800#M106108</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite interested in the webhook solution to trigger some jobs. &lt;/P&gt;&lt;P&gt;Though, I could not understand from the documentation how I should implement the job to read from the resource_webhook_payload. How should a job look like for such implementation ? What component should I use to read from the webhook ?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 14:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Parsing-Json-from-webhook-in-Talend-Cloud/m-p/2337800#M106108</guid>
      <dc:creator>CMathisUp</dc:creator>
      <dc:date>2023-11-08T14:56:25Z</dc:date>
    </item>
  </channel>
</rss>

