<?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: JSON issue not compliant output (Curl - JSON - tREST - TALEND) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360326#M124933</link>
    <description>&lt;P&gt;Change the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;tFileOutputJson component with a tFileOutputRaw component. Then do not open the file with Notepad. This works.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 13:53:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-14T13:53:31Z</dc:date>
    <item>
      <title>JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360316#M124923</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a "tREST" component that I link to a tJSONoutput component&lt;BR /&gt;In the tREST I set up a &lt;SPAN class="highlight"&gt;cURL&lt;/SPAN&gt; request, the request requests a URL and an "X-Auth-Token" in HTTP header&lt;BR /&gt;After that I get a JSON that contains all the metrics of my infrastructures on openstack&lt;BR /&gt;&lt;BR /&gt;the concern is that the json is not the right format, it's a big package of unstructured data in JSON format.&lt;BR /&gt;&lt;BR /&gt;The solution is to add "| python -mjson.tool" at the end of the &lt;SPAN class="highlight"&gt;cURL&lt;/SPAN&gt; request.&lt;BR /&gt;&lt;BR /&gt;Like this: &lt;SPAN class="highlight"&gt;curl&lt;/SPAN&gt; -H "X-Auth-Token: XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" "XXXXXXXXXXXXXXXXXXXXXX / servers / detail" | python -mjson.tool&lt;BR /&gt;&lt;BR /&gt;This works very well on the bash github console, but I would like to use it on &lt;SPAN class="highlight"&gt;TALEND&lt;/SPAN&gt; so that my tREST interopts openstack and generates a JSON with the GOOD FORMAT.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ahmed.daoudi.pro@gmail.com&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:42:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360316#M124923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360317#M124924</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Essayez de reformuler en anglais pour augmenter vos chances d'obtenir une réponse (les gens sont principalement anglophones sur ce forum).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:07:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360317#M124924</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-02-14T11:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360318#M124925</link>
      <description>Hi, my message was in English, it had to translate automatically because I have an automatic translator on my internet pages. Thank you</description>
      <pubDate>Wed, 14 Feb 2018 11:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360318#M124925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T11:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360319#M124926</link>
      <description>&lt;P&gt;Can you explain what you mean by a good format? What is being sent back by the tRest that you do not like?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360319#M124926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T12:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360320#M124927</link>
      <description>&lt;P&gt;By "good format" I mean a JSON "normal" with indentations, returns to the line. There with my job TALEND I get a big packet of data, a big block.&lt;/P&gt; 
&lt;P&gt;MY JSON :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;{"data":[{"Body":"{\"servers\": [{\"status\": \"ACTIVE\", \"updated\": \"2018-01-23T09:45:02Z\", \"hostId\": \"XXXXXXXXXXXXXXXXXXXXXXX\", \"addresses\": {\"reseau_1\": [{\"XXXXX:mac_addr\": \"XXXXXXXX\", \"version\": 4, \"addr\": \"XXXX\",&lt;/P&gt; 
&lt;P&gt;good format wich I want:&lt;/P&gt; 
&lt;P&gt;{&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "servers": [&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status": "ACTIVE",&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "updated": "2018-01-23T09:45:02Z",&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "hostId": "XXXXXXXXXXXXXXXXXXXXXXXXXX",&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "addresses": {&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "reseau_1": [&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"XXXXXXX:mac_addr": "XX:XX:XX:XX:XX:XX",&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "version": 4,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "addr": "XX.XX.XX.XX",&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OS-EXT-IPS:type": "fixed"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 12:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360320#M124927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T12:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360321#M124928</link>
      <description>&lt;P&gt;Ah I see. This is relatively easy, but requires a little bit of code. Output your JSON to a tJavaFlex. Assuming the row that enters the tJavaFlex is called "row1", the row that exits the tJavaFlex is called "row2" and the column for the JSON input/output is called "json", this code should work for you....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;JSONObject json = new JSONObject(row1.json); 
row2.json = json.toString(4); &lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360321#M124928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360322#M124929</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;ok i will try to do it and tell you what it is. So it's impossible to do as in curl with GIT BASH, just adding "| python -mjson.tool"? It works very well in bash I receive a JSON file in the right format. It would be so much easier to add "| python -mjson.tool" somewhere in talend ... Thank you for your return!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360322#M124929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360323#M124930</link>
      <description>&lt;P&gt;Unfortunately you are comparing Talend to a number of different technologies working together there. You have BASH, Curl and Python working together. I guess you are more familiar with Python than Java, which is why it seems easier. But adding a couple of lines of Java is really very simple and one of the massive advantages of using Talend. Although granted, it does help if you know Java &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360323#M124930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360324#M124931</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;your code does not work at home. &lt;SPAN&gt;I think you did not understand what I want then.&lt;/SPAN&gt; i have a component tREST that will type on an openstack base in cURL. this component is connected to a tFileOutputJson component, the tFileOutputJson writes all the metrics of my openstack infrastructure in a json file. In this json file I have all the information and metrics I want. &lt;SPAN&gt;But they are not in JSON format, they are poorly structured.&lt;/SPAN&gt; With GIT BASH it works fine, I send a cURL request and receive the JSON information, but I would like to do this on TALEND in order to continue and automate my jobs. In addition, with GIT BASH you can not generate a JSON file, it's just the display. As I told you, with GIT BASH just add "| python -mjson.tool" at the end of the request curl and it's very simple. But I do not know where to put the "| python -mjson.tool" with talend. Thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360324#M124931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360325#M124932</link>
      <description>&lt;P&gt;Is it possible to copy / paste this request cURL in TALEND? curl -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxx" "https: //compute.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/servers/detail" | python -mjson.tool&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360325#M124932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360326#M124933</link>
      <description>&lt;P&gt;Change the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;tFileOutputJson component with a tFileOutputRaw component. Then do not open the file with Notepad. This works.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360326#M124933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360327#M124934</link>
      <description>&lt;P&gt;You can do practically whatever you want in Talend. However doing what you're wanting to do is a little like putting a road inside a train.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 13:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360327#M124934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-14T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360328#M124935</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;thank you ! &lt;SPAN&gt;but your answer does not completely solve my problem!&lt;/SPAN&gt; I used a tFileOutputRaw but indentation and line breaks were not taken into account. So I can't parser my json to extract information! &lt;SPAN&gt;help me please&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 12:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360328#M124935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T12:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: JSON issue not compliant output (Curl - JSON - tREST - TALEND)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360329#M124936</link>
      <description>&lt;P&gt;Indentation and line breaks should not affect a true parser. Anyway, if you open the file using an application that does not ignore formatting (something like WordPad in Windows), you will see that it is formatted in a more readable fashion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not a Talend issue, this is an interpretation issue.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 12:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JSON-issue-not-compliant-output-Curl-JSON-tREST-TALEND/m-p/2360329#M124936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T12:30:42Z</dc:date>
    </item>
  </channel>
</rss>

