<?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 use tExtract JSON without a loop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2411112#M140040</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I recommend you to use jsonpath.com. YOu put your JSON with the solution provided by shong and you can see the content you'll be extracting from this json&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 14:28:25 GMT</pubDate>
    <dc:creator>jeoste</dc:creator>
    <dc:date>2024-01-25T14:28:25Z</dc:date>
    <item>
      <title>How to use tExtract JSON without a loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2366347#M129847</link>
      <description>&lt;P&gt;This seems like a simple fix but as you can see from the screens shots I've looked at this several ways and cannot determine how to extract a non-looping value in tExtractJSON.&lt;/P&gt;&lt;P&gt;I have a job that calls an API and needs to get the link for the next call.&lt;/P&gt;&lt;P&gt;Set up is:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"value": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;all chat related attributes that needs to imported&lt;/P&gt;&lt;P&gt;&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;"odatlink": link&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pulled the link and am attempting to extract the JSON. tExtract will not allow me to get the single non looping value that can be found in the JSON Evaluator or in the case when I use a test file and set the tFileInput to a single loop. &lt;/P&gt;&lt;P&gt;Is there a way to extract a JSON value without a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2366347#M129847</guid>
      <dc:creator>JFryk</dc:creator>
      <dc:date>2024-11-15T21:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tExtract JSON without a loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2366348#M129848</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Set the root node as loop element, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;assuming the returned string from API looks like below:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&amp;nbsp;"odatlink": "http://localhost:8080"&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Set the root node as loop Set the &lt;B&gt;Loop Jsonpath query &lt;/B&gt;as: "$",  the &lt;B&gt;Json query&lt;/B&gt; expression as: "odatlink", you should be able to extract the link value using tExtractJsonFields component. &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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 07:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2366348#M129848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-22T07:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tExtract JSON without a loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2411112#M140040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I recommend you to use jsonpath.com. YOu put your JSON with the solution provided by shong and you can see the content you'll be extracting from this json&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 14:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-tExtract-JSON-without-a-loop/m-p/2411112#M140040</guid>
      <dc:creator>jeoste</dc:creator>
      <dc:date>2024-01-25T14:28:25Z</dc:date>
    </item>
  </channel>
</rss>

