<?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: json string from mysql db and extract json fields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/json-string-from-mysql-db-and-extract-json-fields/m-p/2334310#M102990</link>
    <description>&lt;P&gt;Hi vshivkaushik&lt;/P&gt; 
&lt;P&gt;You can use tExtractJsonFields to extract data from the json string, you don't need to write the json string to a file, the job design looks like:&lt;/P&gt; 
&lt;P&gt;tMysqlInput--main--tExtractJsonFields--tMysqlOutput&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;please refer to the component documentation and learn this component, let me know if you have any issues.&amp;nbsp;&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;</description>
    <pubDate>Fri, 02 Feb 2018 09:21:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-02T09:21:41Z</dc:date>
    <item>
      <title>json string from mysql db and extract json fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-string-from-mysql-db-and-extract-json-fields/m-p/2334309#M102989</link>
      <description>&lt;P&gt;One column "Unknown" in local mysql db table has following 2 sample rows:&lt;/P&gt;&lt;P&gt;{"sourceData":{"1":"RPT_DT_ID","2":"APPL_SRCE_CD","3":"BASIC_CM_NO","4":"CHRG_LEND_ON_CHRG_CD"}}&lt;BR /&gt;{"sourceData":{"1":"20171231","2":"US","3":" 019044037984006","4":"Lend "}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially, each row is a json string.&lt;/P&gt;&lt;P&gt;I need to import from db and then extract the json values and map it to output columns in another table in local mysql db&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported this column and wrote it to tfileoutputjson and I get something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[{"file_record":"{\"sourceData\":{\"a\":\"RPT_DT_ID\",\"b\":\"APPL_SRCE_CD\",\"c\":\"BASIC_CM_NO\",\"d\":\"CHRG_LEND_ON_CHRG_CD\"}}"},&lt;BR /&gt;{"file_record":"{\"sourceData\":{\"a\":\"20171231\",\"b\":\"US\",\"c\":\" 019044037984006\",\"d\":\"Lend \"}}"}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in extracting this json data, store in csv and map to output fields&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 22:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-string-from-mysql-db-and-extract-json-fields/m-p/2334309#M102989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T22:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: json string from mysql db and extract json fields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-string-from-mysql-db-and-extract-json-fields/m-p/2334310#M102990</link>
      <description>&lt;P&gt;Hi vshivkaushik&lt;/P&gt; 
&lt;P&gt;You can use tExtractJsonFields to extract data from the json string, you don't need to write the json string to a file, the job design looks like:&lt;/P&gt; 
&lt;P&gt;tMysqlInput--main--tExtractJsonFields--tMysqlOutput&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;please refer to the component documentation and learn this component, let me know if you have any issues.&amp;nbsp;&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;</description>
      <pubDate>Fri, 02 Feb 2018 09:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-string-from-mysql-db-and-extract-json-fields/m-p/2334310#M102990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-02T09:21:41Z</dc:date>
    </item>
  </channel>
</rss>

