<?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: extract json data from a rest url in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200219#M2772</link>
    <description>Hi&amp;nbsp;
&lt;BR /&gt;I tested and got the same result.Try to replace all "
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment Status" with "&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment_Status" on a tJavaRow b&lt;/FONT&gt;&lt;/FONT&gt;efore tExtractJsonFields,&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;, for example:&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;...tJavaRow--main--tExtractJsonFields...&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;on tJavaRow:&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;output_row.result=input_row.result.replaceAll("&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment Status&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;","&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment_Status&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;")&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 29 Sep 2016 10:10:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-29T10:10:03Z</dc:date>
    <item>
      <title>extract json data from a rest url</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200218#M2771</link>
      <description>I am trying to get a json result from rest URL. Then extract the data items and process them into another format. 
&lt;BR /&gt;The following image is what I did. The json result is like this. What I want is the data from "data", like "id", "Replenishment Status" , "Supplier Name(id)"... But I always got the error "Error on line 1 of document &amp;nbsp;: Attribute name "Status" associated with an element type "Replenishment" must be followed by the ' = ' character. Nested exception: Attribute name "Status" associated with an element type "Replenishment" must be followed by the ' = ' character. 
&lt;BR /&gt; disconnected" 
&lt;BR /&gt;I guess this is caused by there is a space in between "Replenishment Status" . 
&lt;BR /&gt;I saw there was a ticket has the same issue this one:&amp;nbsp; 
&lt;A href="https://jira.talendforge.org/browse/TDI-31974" target="_blank" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-31974&lt;/A&gt; 
&lt;BR /&gt;I am using TOS 6.1, also I tried the latest version 6.2.1. They all have the same problem. 
&lt;BR /&gt;When I remove tExtractJsonField component, the result printed out correctly. 
&lt;BR /&gt;May I know if there is a solution for this? If I cannot use tExtractJsonField, &amp;nbsp;is there any other way I can map those json data into other format? 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt; 
&lt;BR /&gt;{ 
&lt;BR /&gt;&amp;nbsp; "structure": 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "name": "ShipTo Address Line 3", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "dropDown", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "required": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "unique": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canRead": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canUpdate": true, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canCreate": true, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "choices": 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "name": "Note", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "paragraph", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "required": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "unique": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canRead": true, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canUpdate": true, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canCreate": true 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; { 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "name": "Received Quantity", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "type": "number", 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "required": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "unique": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canRead": false, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canUpdate": true, 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "canCreate": true 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; } 
&lt;BR /&gt;&amp;nbsp; ], 
&lt;BR /&gt;&amp;nbsp; "data": , 
&lt;BR /&gt;&amp;nbsp; "totalCount": 3 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBe4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154606iF1E5D4C76375227C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBe4.png" alt="0683p000009MBe4.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBe9.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141033i82323CE0C158F619/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBe9.png" alt="0683p000009MBe9.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200218#M2771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-23T17:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: extract json data from a rest url</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200219#M2772</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;I tested and got the same result.Try to replace all "
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment Status" with "&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment_Status" on a tJavaRow b&lt;/FONT&gt;&lt;/FONT&gt;efore tExtractJsonFields,&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;, for example:&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;...tJavaRow--main--tExtractJsonFields...&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;on tJavaRow:&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="2"&gt;output_row.result=input_row.result.replaceAll("&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment Status&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;","&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Replenishment_Status&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;")&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shong&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 29 Sep 2016 10:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200219#M2772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-29T10:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: extract json data from a rest url</title>
      <link>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200220#M2773</link>
      <description>Hi Shong,
&lt;BR /&gt;i have tried&amp;nbsp;
&lt;BR /&gt;trest---&amp;gt;(main) textractjsonfields-----&amp;gt;tmap----&amp;gt;tmysqloutput
&lt;BR /&gt;here am unable to complie the job.am getting error notification as
&lt;BR /&gt;&amp;nbsp;ERROR_CODE cannot be resolved or it is not field
&lt;BR /&gt;Body cannot be resolved or it is not field
&lt;BR /&gt;what settings i need to use in tRest.am passing an url.no ned to pass any headers.
&lt;BR /&gt;here i have tried tfilejsoninput with url,
&lt;BR /&gt;but i got
&lt;BR /&gt;java.io.IOException: Illegal character: &amp;lt;&amp;gt;
&lt;BR /&gt;this exception.
&lt;BR /&gt;am using encode as UTF-8
&lt;BR /&gt;Appreciate for quick response
&lt;BR /&gt;Regards,
&lt;BR /&gt;Rekha</description>
      <pubDate>Mon, 14 Nov 2016 08:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/extract-json-data-from-a-rest-url/m-p/2200220#M2773</guid>
      <dc:creator>bhagyarekha</dc:creator>
      <dc:date>2016-11-14T08:01:41Z</dc:date>
    </item>
  </channel>
</rss>

