<?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: Consuming REST API and extracting  JSON Fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305257#M76941</link>
    <description>&lt;P&gt;Try using read by: JsonPath instead of XPath.&amp;nbsp; Depending on which fields you wish to extract will determine the Loop Jsonpath query.&amp;nbsp; Typically I use "$" as the base element, then add schema that represent every field I wish to extract.&amp;nbsp; The Json query field in each schema element represents the&amp;nbsp;&lt;A href="http://jsonpath.com/" target="_self" rel="nofollow noopener noreferrer"&gt;JSONPath Query&lt;/A&gt;&amp;nbsp;relative to the Loop Jsonpath query.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-03-08_10-38-45.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsuL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153305i5983D8B7B528154D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsuL.png" alt="0683p000009LsuL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If the JSON is complex with many nested Objects/Arrays, it may be beneficial to use multiple tExtractJSONField components consecutively.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Mar 2018 15:40:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-08T15:40:26Z</dc:date>
    <item>
      <title>Consuming REST API and extracting  JSON Fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305254#M76938</link>
      <description>&lt;P&gt;I'm pretty new to Talend and have run into a problem I need help with. I have a REST API that I need to connect to and extract the JSON fields and push them to a JSON output file. I am able to connect to the service using the tRestClient. The issue I'm having is trying to extract the fields. I though the tExtractJSONFields would allow me to extract the fields but haven't much luck with it. I know i can manually map the fields to an output but I'd rather not cause eventually I'll be connecting to multiple services and will need to be able to get the fields automatically. I'v attached a pic of my current job. Thank you in advance for your assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305254#M76938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming REST API and extracting  JSON Fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305255#M76939</link>
      <description>&lt;P&gt;Could you upload your json response from your call ...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And Is it the xpath&amp;nbsp;query you find difficult to extract field?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/Je6AV_TMnYHC_MpEtaMBaA" target="_self" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/g8zdjVE7fWNUh3u4ztO6Dw/Je6AV_TMnYHC_MpEtaMBaA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 23:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305255#M76939</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-03-07T23:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming REST API and extracting  JSON Fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305256#M76940</link>
      <description>&lt;P&gt;Attached is the response I receive and yes I was struggling with&amp;nbsp;whether to use the JsonPath or the XPath&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"eventAttempted": "TryRead",&lt;BR /&gt;"output": [&lt;BR /&gt;{&lt;BR /&gt;"id": "5a6be78asdfe8cab22a",&lt;BR /&gt;"shortName": "Loc Header 36",&lt;BR /&gt;"businessUnitViewOnly": [],&lt;BR /&gt;"locations": [],&lt;BR /&gt;"modified": "0001-01-01T00:00:00Z",&lt;BR /&gt;"created": "0001-01-01T00:00:00Z"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id": "5a6bwerqe8e8cab22d",&lt;BR /&gt;"shortName": "Location Header 39",&lt;BR /&gt;"ownerBusinessUnit": { "id": "2" },&lt;BR /&gt;"businessUnitViewOnly": [ { "id": "1" } ],&lt;BR /&gt;"locations": [],&lt;BR /&gt;"modifiedBy": "John Stub",&lt;BR /&gt;"modified": "2018-03-07T21:41:42.768Z",&lt;BR /&gt;"created": "0001-01-01T00:00:00Z"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id": "5a79werewebd40",&lt;BR /&gt;"shortName": "Test LocHeader 01f9bb52qwpoerqlkc7978860a8b",&lt;BR /&gt;"businessUnitViewOnly": [],&lt;BR /&gt;"locations": [],&lt;BR /&gt;"modified": "0001-01-01T00:00:00Z",&lt;BR /&gt;"created": "0001-01-01T00:00:00Z"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"id": "5a79ec5werasdftre81e9ce",&lt;BR /&gt;"shortName": "Test LocHeader 6cbcc29d-pouoreruqwre-28dc34a3678f",&lt;BR /&gt;"businessUnitViewOnly": [],&lt;BR /&gt;"locations": [],&lt;BR /&gt;"modified": "0001-01-01T00:00:00Z",&lt;BR /&gt;"created": "0001-01-01T00:00:00Z"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"qtyOverall": 4,&lt;BR /&gt;"qtyReturned": 4,&lt;BR /&gt;"successful": true&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305256#M76940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T15:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming REST API and extracting  JSON Fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305257#M76941</link>
      <description>&lt;P&gt;Try using read by: JsonPath instead of XPath.&amp;nbsp; Depending on which fields you wish to extract will determine the Loop Jsonpath query.&amp;nbsp; Typically I use "$" as the base element, then add schema that represent every field I wish to extract.&amp;nbsp; The Json query field in each schema element represents the&amp;nbsp;&lt;A href="http://jsonpath.com/" target="_self" rel="nofollow noopener noreferrer"&gt;JSONPath Query&lt;/A&gt;&amp;nbsp;relative to the Loop Jsonpath query.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-03-08_10-38-45.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsuL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153305i5983D8B7B528154D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsuL.png" alt="0683p000009LsuL.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If the JSON is complex with many nested Objects/Arrays, it may be beneficial to use multiple tExtractJSONField components consecutively.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 15:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305257#M76941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T15:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Consuming REST API and extracting  JSON Fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305258#M76942</link>
      <description>That seems to have got me a further, Thanks !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Consuming-REST-API-and-extracting-JSON-Fields/m-p/2305258#M76942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-08T16:18:55Z</dc:date>
    </item>
  </channel>
</rss>

