<?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: tExtractJsonField gives null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328621#M97889</link>
    <description>&lt;P&gt;use the website http://jsonpath.com/ to see what your code would extract from the JSON file. &lt;/P&gt;&lt;P&gt;Copy paste the entire example which you gave above to the left hand side of the pane called Input. &lt;/P&gt;&lt;P&gt;in the JSON path syntax you would enter $.content[0].typeIds and on the right hand side it should yield the result&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"CL_Offersheet_ProcessCost",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"CL_OFFERSHEET_MOEMAX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in your Talend studio you will omit the $. and then enter "content[0].typeIds" on the Json Query &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the JSON path syntax you would enter $.content[0].taxonomyIds and on the right hand side it should yield the result&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"TAX_KAT_OF_2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"TAXm_DP_6"&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in your Talend studio you will omit the $. and then enter "content[0].taxonomyIds" on the Json Query &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck !!&lt;/P&gt;&lt;P&gt;Ravi Rajagopal&lt;/P&gt;</description>
    <pubDate>Sun, 28 Feb 2021 16:06:16 GMT</pubDate>
    <dc:creator>Ravi_Rajagopal</dc:creator>
    <dc:date>2021-02-28T16:06:16Z</dc:date>
    <item>
      <title>tExtractJsonField gives null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328618#M97886</link>
      <description>&lt;P&gt;Input json :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"firstName": "John",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"lastName": "Smith",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"age": 25&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tFileInputJson :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BZFXVAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146688i451A78E8BF36F535/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BZFXVAA5.png" alt="0693p00000BZFXVAA5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tExtractJsonField :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BZFXzAAP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134305i5256E9FC5217F19B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BZFXzAAP.png" alt="0693p00000BZFXzAAP.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BZFVPAA5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138534i8A60F862ECB4513E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BZFVPAA5.png" alt="0693p00000BZFVPAA5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What mistake I am doing please can you let me know?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 15:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328618#M97886</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2021-02-26T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJsonField gives null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328619#M97887</link>
      <description>&lt;P&gt;Hello @Yogesh Kuwar​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that tExtractJSONFields&amp;nbsp;extracts the desired data from incoming JSON fields based on the XPath or JSONPath query whereas tFileInputJSON&amp;nbsp;extracts JSON data from a file, then transfers the data to a file, a database table, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, I do not understand your requirement to use the tExtractJSONFields&amp;nbsp;component. If you will use tfileInputJson only, you will be able to get your desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000BZGa6AAH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140101iF959A093E5FC96A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000BZGa6AAH.png" alt="0693p00000BZGa6AAH.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revert back to the community if needed.&lt;/P&gt;&lt;P&gt;Please mark it as resolved if it helps. (Kudos also accepted) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaishnavi &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 17:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328619#M97887</guid>
      <dc:creator>prg</dc:creator>
      <dc:date>2021-02-26T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJsonField gives null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328620#M97888</link>
      <description>&lt;P&gt;Hello @Vaishnavi Khandelwal​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Okay I got your point,, but above scenario is just an example to extract fields. Below is the realtime scenario can you please guide me for it then we can mark this as resolved (your guidance is very much appriciated) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have to extract an ArrayList using tExtactJSONFields, below is the sourceJSON.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;"content": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"typeIds": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"CL_Offersheet_ProcessCost",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"CL_OFFERSHEET_MOEMAX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"id": "9c783501-20ee-4b04-ab09-6923e5ed0769",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"label": "Offer sheet M�max New",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"languageCode": "de_DE_AT",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"taxonomyIds": [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"TAX_KAT_OF_2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"TAXm_DP_6"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Source File :&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to extract the values from typeIds and taxonomyIds arrayList is it possible in tExtractJSONFields??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Yogesh.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 07:29:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328620#M97888</guid>
      <dc:creator>kuwaryogi27</dc:creator>
      <dc:date>2021-02-28T07:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJsonField gives null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328621#M97889</link>
      <description>&lt;P&gt;use the website http://jsonpath.com/ to see what your code would extract from the JSON file. &lt;/P&gt;&lt;P&gt;Copy paste the entire example which you gave above to the left hand side of the pane called Input. &lt;/P&gt;&lt;P&gt;in the JSON path syntax you would enter $.content[0].typeIds and on the right hand side it should yield the result&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"CL_Offersheet_ProcessCost",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"CL_OFFERSHEET_MOEMAX"&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in your Talend studio you will omit the $. and then enter "content[0].typeIds" on the Json Query &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the JSON path syntax you would enter $.content[0].taxonomyIds and on the right hand side it should yield the result&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;[&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"TAX_KAT_OF_2",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;"TAXm_DP_6"&lt;/P&gt;&lt;P&gt;&amp;nbsp;]&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now in your Talend studio you will omit the $. and then enter "content[0].taxonomyIds" on the Json Query &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck !!&lt;/P&gt;&lt;P&gt;Ravi Rajagopal&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 16:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJsonField-gives-null/m-p/2328621#M97889</guid>
      <dc:creator>Ravi_Rajagopal</dc:creator>
      <dc:date>2021-02-28T16:06:16Z</dc:date>
    </item>
  </channel>
</rss>

