<?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: How to convert JSON file to an array ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373030#M135798</link>
    <description>&lt;P&gt;I would like to add this precision :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the start of "logrow6" &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2LL6AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157591i531C25222E740967/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2LL6AAN.png" alt="0695b00000N2LL6AAN.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finaly, insert with API not working.&lt;/P&gt;&lt;P&gt;My main problem is the my JSON file is not an array.&lt;/P&gt;&lt;P&gt;The API must have an JSON array.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 16:16:35 GMT</pubDate>
    <dc:creator>Eric_Talend</dc:creator>
    <dc:date>2022-01-19T16:16:35Z</dc:date>
    <item>
      <title>How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373027#M135795</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 must call an API with PUT http method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an JSON file but this API must have an JSON &lt;B&gt;array&lt;/B&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I search and I search any solution (with tWriteJSONField or with "tConvertType"/"tReplace") but none solution is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever had this use case ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373027#M135795</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2024-11-15T23:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373028#M135796</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can you show an example to explain what the Json data looks like? With tWriteJSONField, we can create a Json string as seen below, it contains an array element. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000KCdG2AAL.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141271iBACD9D8859B1021E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000KCdG2AAL.jpg" alt="0695b00000KCdG2AAL.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2021 02:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373028#M135796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-27T02:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373029#M135797</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2LE0AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139900iDD342263F4D587A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2LE0AAN.png" alt="0695b00000N2LE0AAN.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is the description of tWriteJSONField :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2LEFAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133095i85781991A0DDE1CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2LEFAA3.png" alt="0695b00000N2LEFAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But at the end, I don't have my JSON in array format. &lt;span class="lia-unicode-emoji" title=":weary_face:"&gt;😩&lt;/span&gt;  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not an expert of JSON format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373029#M135797</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2022-01-19T16:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373030#M135798</link>
      <description>&lt;P&gt;I would like to add this precision :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the start of "logrow6" &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2LL6AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157591i531C25222E740967/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2LL6AAN.png" alt="0695b00000N2LL6AAN.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finaly, insert with API not working.&lt;/P&gt;&lt;P&gt;My main problem is the my JSON file is not an array.&lt;/P&gt;&lt;P&gt;The API must have an JSON array.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 16:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373030#M135798</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2022-01-19T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373031#M135799</link>
      <description>&lt;P&gt;@Eric Vincent​&amp;nbsp;,  see below screenshot which showing how to define an array element. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000N2SuhAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140197i6F822E11B7B7250B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000N2SuhAAF.png" alt="0695b00000N2SuhAAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try again and let me know if you have any problem.&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>Thu, 20 Jan 2022 04:15:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373031#M135799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-20T04:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373032#M135800</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your proposition.&lt;/P&gt;&lt;P&gt;I try to add this in my job but the result is not good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add with CURL, I have this code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;curl -X PUT "https://myURL/api/table/rows" -H&amp;nbsp;"accept: application/json" -H&amp;nbsp;"Authorization: Basic XXX" -H&amp;nbsp;"Content-Type: application/json" -d "[&amp;nbsp;{&amp;nbsp;&amp;nbsp;&amp;nbsp;\"logindelagent\": \"XXX\",&amp;nbsp;&amp;nbsp;&amp;nbsp;\"identifiantastre\": \"111\",&amp;nbsp;&amp;nbsp;&amp;nbsp;\"projetservice\": \"XXX\",&amp;nbsp;&amp;nbsp;&amp;nbsp;\"rattachement\": \"XXX\",&amp;nbsp;&amp;nbsp;&amp;nbsp;\"responsable\": \"XXX\",&amp;nbsp;&amp;nbsp;&amp;nbsp;\"statut\": \"XXX\"&amp;nbsp;}]"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is this code that I want to reproduce in json.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 14:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373032#M135800</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2022-01-20T14:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert JSON file to an array ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373033#M135801</link>
      <description>&lt;P&gt;oh, I will try to add with CURL by removing "\" before each data and it's KO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I must have this caracter before each element &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 15:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-convert-JSON-file-to-an-array/m-p/2373033#M135801</guid>
      <dc:creator>Eric_Talend</dc:creator>
      <dc:date>2022-01-20T15:15:07Z</dc:date>
    </item>
  </channel>
</rss>

