<?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: unable to extract the fields of json using textractjsonfields component? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/unable-to-extract-the-fields-of-json-using-textractjsonfields/m-p/2373047#M135813</link>
    <description>&lt;P&gt;try with XPath - "/" (no *)&lt;/P&gt;&lt;P&gt;and it would be something like:&lt;/P&gt;&lt;PRE&gt;.-----------+------------+---------+-----------+-----------+-----.
|                           tLogRow_1                            |
|=----------+------------+---------+-----------+-----------+----=|
|Id         |UnitId      |Direction|PositionLat|PositionLon|Speed|
|=----------+------------+---------+-----------+-----------+----=|
|42925362566|254125220221|201      |49.34381   |-18.19258  |46   |
|42963589658|261321220221|202      |49.34342   |-18.19352  |46   |
|42965248569|261321525654|158      |47.48203   |-18.86108  |46   |
'-----------+------------+---------+-----------+-----------+-----'&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 05:36:57 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2018-04-26T05:36:57Z</dc:date>
    <item>
      <title>unable to extract the fields of json using textractjsonfields component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-extract-the-fields-of-json-using-textractjsonfields/m-p/2373046#M135812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am&amp;nbsp;unable to extract fields from JSON&amp;nbsp;data using textractjsonfields. JSON input data looks like this&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;[{"Id":42925362566,"UnitId":"254125220221","Direction":201.00,"DriverKeyCode":5257,"EventTypeId":149,"EventTypeDescription":"Start of Speeding","LocalTimestamp":"2018-04-17T09:01:54+03:00","Odometer":1349826,"Position":[49.34381,-18.19258],"Speed":46.00,"UnitOfDistanceCode":"km","StartOfExceptionData":{"Limit":45.0}},{"Id":42963589658,"UnitId":"261321220221","Direction":202.00,"DriverKeyCode":8507,"EventTypeId":150,"EventTypeDescription":"Speeding","LocalTimestamp":"2018-04-17T05:02:03+03:00","Odometer":1349827,"Position":[49.34342,-18.19352],"Speed":46.00,"UnitOfDistanceCode":"km","EndOfExceptionData":{"Limit":45.0,"Maximum":46.0,"Duration":14}},{"Id":42965248569,"UnitId":"261321525654","Direction":158.00,"DriverKeyCode":8565,"EventTypeId":149,"EventTypeDescription":"Start of Speeding","LocalTimestamp":"2018-04-17T05:02:47+03:00","Odometer":542971,"Position":[47.48203,-18.86108],"Speed":46.00,"UnitOfDistanceCode":"km","StartOfExceptionData":{"Limit":45.0}},{"Id":42965588747,"UnitId":"261321220440","Direction":158.00,"DriverKeyCode":4575,"EventTypeId":150,"EventTypeDescription":"Speeding","LocalTimestamp":"2018-04-17T05:03:05+03:00","Odometer":542971,"Position":[47.48280,-18.86287],"Speed":47.00,"UnitOfDistanceCode":"km","EndOfExceptionData":{"Limit":45.0,"Maximum":47.0,"Duration":24}},&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Input fields come as&lt;/P&gt; 
&lt;P&gt;statusCode,&lt;/P&gt; 
&lt;P&gt;body,&lt;/P&gt; 
&lt;P&gt;string,&lt;/P&gt; 
&lt;P&gt;so I have given the output extract fields columns&amp;nbsp;as&lt;/P&gt; 
&lt;P&gt;Id,&lt;/P&gt; 
&lt;P&gt;UnitId,&lt;BR /&gt;Direction,&lt;BR /&gt;DriverKeyCode,&lt;BR /&gt;EventTypeId,&lt;BR /&gt;EventTypeDescription,&lt;BR /&gt;LocalTimestamp,&lt;BR /&gt;Odometer,&lt;BR /&gt;Position,&lt;BR /&gt;Speed,&lt;BR /&gt;UnitOfDistanceCode.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Loop xpath&amp;nbsp;query: "/*"&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jsonfields.png" style="width: 788px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146597i766B83F66032C92D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcy.png" alt="0683p000009MPcy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-extract-the-fields-of-json-using-textractjsonfields/m-p/2373046#M135812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: unable to extract the fields of json using textractjsonfields component?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/unable-to-extract-the-fields-of-json-using-textractjsonfields/m-p/2373047#M135813</link>
      <description>&lt;P&gt;try with XPath - "/" (no *)&lt;/P&gt;&lt;P&gt;and it would be something like:&lt;/P&gt;&lt;PRE&gt;.-----------+------------+---------+-----------+-----------+-----.
|                           tLogRow_1                            |
|=----------+------------+---------+-----------+-----------+----=|
|Id         |UnitId      |Direction|PositionLat|PositionLon|Speed|
|=----------+------------+---------+-----------+-----------+----=|
|42925362566|254125220221|201      |49.34381   |-18.19258  |46   |
|42963589658|261321220221|202      |49.34342   |-18.19352  |46   |
|42965248569|261321525654|158      |47.48203   |-18.86108  |46   |
'-----------+------------+---------+-----------+-----------+-----'&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 05:36:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/unable-to-extract-the-fields-of-json-using-textractjsonfields/m-p/2373047#M135813</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-04-26T05:36:57Z</dc:date>
    </item>
  </channel>
</rss>

