<?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: textractjson ({&amp;quot;code&amp;quot;:200}) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288987#M62406</link>
    <description>&lt;P&gt;Did this solve your problem?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 13:57:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-27T13:57:23Z</dc:date>
    <item>
      <title>textractjson ({"code":200})</title>
      <link>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288985#M62404</link>
      <description>&lt;P&gt;Pls help I don´t know how to deal with this kind of json file:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to extract with tExtractJSONFields this file&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;{"status":{"code":200},"body":{"cars":[{"carId":8980,"carNr":"HPK 466","lon":11.6909065,"lat":47.3475876,"locality":"Austria, Vomp 0.91 km., \"E 45;E 60\" Inntal Autobahn","timestamp":"2018-02-23 18:23:33","ign":0,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":517052,"AW1":0,"AW2":0,"AW3":0,"AW4":0,"TW":0,"rpm":0,"fuel":545},{"carId":10577,"carNr":"JBJ 501 GC 620","lon":12.9923458,"lat":55.6282349,"locality":"Sweden, Malmö 2.87 km., Lappögatan","timestamp":"2018-02-23 18:28:28","ign":0,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":265986,"AW1":6900,"AW2":7900,"AW3":0,"AW4":0,"TW":0,"rpm":544,"fuel":1146},{"carId":11579,"carNr":"JGD 947 HH 717","lon":10.1392937,"lat":54.3190613,"locality":"Germany, Kiel 0.32 km., Schwedenkai","timestamp":"2018-02-23 18:24:12","ign":1,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":195243,"AW1":6000,"AW2":5000,"AW3":0,"AW4":0,"TW":0,"rpm":768,"fuel":984},{"carId":11574,"carNr":"JGD 948 HK 548","lon":9.6881142,"lat":52.6723175,"locality":"Germany, Buchholz 0.80 km., An der Autobahn","timestamp":"2018-02-23 18:41:56","ign":0,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":192304,"AW1":7100,"AW2":8800,"AW3":0,"AW4":0,"TW":0,"rpm":544,"fuel":210},{"carId":12881,"carNr":"JRC 474 GS 560","lon":10.0612526,"lat":59.0505219,"locality":"Norway, Larvik 1.97 km., \"40\" Elveveien","timestamp":"2018-02-23 18:34:16","ign":0,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":112703,"AW1":0,"AW2":3400,"AW3":0,"AW4":0,"TW":0,"rpm":0,"fuel":738},{"carId":13524,"carNr":"JZO 977","lon":13.1078205,"lat":59.32827,"locality":"Sweden, Slottsbron 0.52 km., \"E 18;E 45\"","timestamp":"2018-02-23 18:47:26","ign":1,"speed":70,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":67396,"AW1":0,"AW2":7900,"AW3":0,"AW4":0,"TW":0,"rpm":1152,"fuel":434},{"carId":13526,"carNr":"JZO 981","lon":10.8054276,"lat":45.5410995,"locality":"Italy, Affi 2.57 km./Verona 19 km., \"SP11\"","timestamp":"2018-02-23 18:47:09","ign":0,"speed":0,"b1n":"","b2n":"","b3n":"","b4n":"","b1v":0,"b2v":0,"b3v":0,"b4v":0,"t1":0.0,"t2":0.0,"odo":62148,"AW1":0,"AW2":6100,"AW3":0,"AW4":0,"TW":0,"rpm":0,"fuel":803}]}}&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;My workflow:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 838px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsDw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143294i31DD3C1D78B44A3F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsDw.png" alt="0683p000009LsDw.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 849px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsQs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133840i7F8551B55E168994/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsQs.png" alt="0683p000009LsQs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My Problem:&amp;nbsp; Only null data in my output file.&lt;/P&gt; 
&lt;P&gt;Pls can you help me.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kind Regards&lt;/P&gt; 
&lt;P&gt;Martin&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288985#M62404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-23T18:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: textractjson ({"code":200})</title>
      <link>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288986#M62405</link>
      <description>&lt;P&gt;You should try using the JSONPath "Read By" option with this component. Then test it on a site like this:&amp;nbsp;&lt;A href="http://jsonpath.com" target="_blank" rel="nofollow noopener noreferrer"&gt;http://jsonpath.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at your JSON (formatted to be easier to read) and looking at your explanation, you JSONPath loop would be&amp;nbsp;$.body.cars&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your individual records would simply be the record names, like "carId", "carNr", etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{  
   "status":{  
      "code":200
   },
   "body":{  
      "cars":[  
         {  
            "carId":8980,
            "carNr":"HPK 466",
            "lon":11.6909065,
            "lat":47.3475876,
            "locality":"Austria, Vomp 0.91 km., \"E 45;E 60\" Inntal Autobahn",
            "timestamp":"2018-02-23 18:23:33",
            "ign":0,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":517052,
            "AW1":0,
            "AW2":0,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":0,
            "fuel":545
         },
         {  
            "carId":10577,
            "carNr":"JBJ 501 GC 620",
            "lon":12.9923458,
            "lat":55.6282349,
            "locality":"Sweden, Malmö 2.87 km., Lappögatan",
            "timestamp":"2018-02-23 18:28:28",
            "ign":0,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":265986,
            "AW1":6900,
            "AW2":7900,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":544,
            "fuel":1146
         },
         {  
            "carId":11579,
            "carNr":"JGD 947 HH 717",
            "lon":10.1392937,
            "lat":54.3190613,
            "locality":"Germany, Kiel 0.32 km., Schwedenkai",
            "timestamp":"2018-02-23 18:24:12",
            "ign":1,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":195243,
            "AW1":6000,
            "AW2":5000,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":768,
            "fuel":984
         },
         {  
            "carId":11574,
            "carNr":"JGD 948 HK 548",
            "lon":9.6881142,
            "lat":52.6723175,
            "locality":"Germany, Buchholz 0.80 km., An der Autobahn",
            "timestamp":"2018-02-23 18:41:56",
            "ign":0,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":192304,
            "AW1":7100,
            "AW2":8800,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":544,
            "fuel":210
         },
         {  
            "carId":12881,
            "carNr":"JRC 474 GS 560",
            "lon":10.0612526,
            "lat":59.0505219,
            "locality":"Norway, Larvik 1.97 km., \"40\" Elveveien",
            "timestamp":"2018-02-23 18:34:16",
            "ign":0,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":112703,
            "AW1":0,
            "AW2":3400,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":0,
            "fuel":738
         },
         {  
            "carId":13524,
            "carNr":"JZO 977",
            "lon":13.1078205,
            "lat":59.32827,
            "locality":"Sweden, Slottsbron 0.52 km., \"E 18;E 45\"",
            "timestamp":"2018-02-23 18:47:26",
            "ign":1,
            "speed":70,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":67396,
            "AW1":0,
            "AW2":7900,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":1152,
            "fuel":434
         },
         {  
            "carId":13526,
            "carNr":"JZO 981",
            "lon":10.8054276,
            "lat":45.5410995,
            "locality":"Italy, Affi 2.57 km./Verona 19 km., \"SP11\"",
            "timestamp":"2018-02-23 18:47:09",
            "ign":0,
            "speed":0,
            "b1n":"",
            "b2n":"",
            "b3n":"",
            "b4n":"",
            "b1v":0,
            "b2v":0,
            "b3v":0,
            "b4v":0,
            "t1":0.0,
            "t2":0.0,
            "odo":62148,
            "AW1":0,
            "AW2":6100,
            "AW3":0,
            "AW4":0,
            "TW":0,
            "rpm":0,
            "fuel":803
         }
      ]
   }
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Feb 2018 09:59:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288986#M62405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-26T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: textractjson ({"code":200})</title>
      <link>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288987#M62406</link>
      <description>&lt;P&gt;Did this solve your problem?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 13:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/textractjson-quot-code-quot-200/m-p/2288987#M62406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T13:57:23Z</dc:date>
    </item>
  </channel>
</rss>

