<?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: fail to parse the json file error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331933#M100862</link>
    <description>&lt;P&gt;I thought about it before and I did the same test and I got the same result, but I did another extra test:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I chose 4 random files from the files I use as the input and checked them with a JSON validation tool like https://jsonformatter.curiousconcept.com/ and they passed&lt;/LI&gt;&lt;LI&gt;I created metadata for them in Talend, then I used tFileIputRaw and tFileOutputraw and saved one file again when I validated the new file it didn't pass, it seems the job changes something like adding a space &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a pic with two of them at the same time, below is the file after running the job it shows maybe there is a space before the bracket, and up is the original file.  when I compare two files with tools like diffchecker they show these two files are the same as each other, so I am really confused here! as these tools show even one file has extra space with the other.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8LcvAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136024i87CD1D39F96B903F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8LcvAAF.png" alt="0693p00000C8LcvAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 20:49:13 GMT</pubDate>
    <dc:creator>DM_J</dc:creator>
    <dc:date>2021-03-17T20:49:13Z</dc:date>
    <item>
      <title>fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331929#M100858</link>
      <description>&lt;P&gt;I am getting an error when I parse a JSON file from a list of JSON files, I used these two documents:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;B&gt;for iterating throughout the directory -&amp;gt; Scenario 1: Iterating on a file directory from&lt;/B&gt; &lt;A href="https://help.talend.com/r/mjoDghHoMPI0yuyZ83a13Q/Tx8GE09IR2ERGP4GqSsY2w" alt="https://help.talend.com/r/mjoDghHoMPI0yuyZ83a13Q/Tx8GE09IR2ERGP4GqSsY2w" target="_blank"&gt;https://help.talend.com/r/mjoDghHoMPI0yuyZ83a13Q/Tx8GE09IR2ERGP4GqSsY2w&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;for the parsing JSON files: Scenario 1: Extracting JSON data from a file using JSONPath without setting a loop node from&lt;/B&gt; &lt;A href="https://help.talend.com/r/X0AUAzvEDYaq6vqZaP5AYQ/no26uqebEdJX8yyxlNvlUw" alt="https://help.talend.com/r/X0AUAzvEDYaq6vqZaP5AYQ/no26uqebEdJX8yyxlNvlUw" target="_blank"&gt;https://help.talend.com/r/X0AUAzvEDYaq6vqZaP5AYQ/no26uqebEdJX8yyxlNvlUw&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Here is the part of the JSON file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8C70AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130489iEE31AC1074588AF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8C70AAF.png" alt="0693p00000C8C70AAF.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am parsing id, name, firstName, middleName, lastName, gender, initialRegistrationDate, expirationRegistrationDate, and commonName. Note that they are on the first layer of the JSON so they don't have a header.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8BzfAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134938iD577CDB146C83CCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8BzfAAF.png" alt="0693p00000C8BzfAAF.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8C04AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128193iA09C946B39100351/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8C04AAF.png" alt="0693p00000C8C04AAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 20:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331929#M100858</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2021-03-16T20:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331930#M100859</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Issue appears for all JSON file you tested or only for one particular cases? &lt;/P&gt;&lt;P&gt;All output columns in your tFileInputJSON are in String?&lt;/P&gt;&lt;P&gt;Can you please provide logs of you execution ? &lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 08:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331930#M100859</guid>
      <dc:creator>MS5</dc:creator>
      <dc:date>2021-03-17T08:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331931#M100860</link>
      <description>&lt;P&gt;Does the issue appear for all JSON files you tested or only for one particular case?  All cases&lt;/P&gt;&lt;P&gt;All output columns in your tFileInputJSON are in String? Yes&lt;/P&gt;&lt;P&gt;Can you please provide logs of your execution?&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8EULAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138568i4C0EB257C5491AAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8EULAA3.png" alt="0693p00000C8EULAA3.png" /&gt;&lt;/span&gt; execution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331931#M100860</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2021-03-17T10:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331932#M100861</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It seems that the issue is not on how you describe the json file in Talend, but the json file itself.&lt;/P&gt;&lt;P&gt;I've created the same job as you.&lt;/P&gt;&lt;P&gt;It work with the file attached : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8Et6AAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155187i6FB0E553037804EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8Et6AAF.png" alt="0693p00000C8Et6AAF.png" /&gt;&lt;/span&gt;Do you see anything different in your json file?&lt;/P&gt;&lt;P&gt;If I add a } at the end (which is not correct), I receive the same error as in your log : fail to parse the json file&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 12:11:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331932#M100861</guid>
      <dc:creator>MS5</dc:creator>
      <dc:date>2021-03-17T12:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331933#M100862</link>
      <description>&lt;P&gt;I thought about it before and I did the same test and I got the same result, but I did another extra test:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I chose 4 random files from the files I use as the input and checked them with a JSON validation tool like https://jsonformatter.curiousconcept.com/ and they passed&lt;/LI&gt;&lt;LI&gt;I created metadata for them in Talend, then I used tFileIputRaw and tFileOutputraw and saved one file again when I validated the new file it didn't pass, it seems the job changes something like adding a space &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attached a pic with two of them at the same time, below is the file after running the job it shows maybe there is a space before the bracket, and up is the original file.  when I compare two files with tools like diffchecker they show these two files are the same as each other, so I am really confused here! as these tools show even one file has extra space with the other.&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000C8LcvAAF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136024i87CD1D39F96B903F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000C8LcvAAF.png" alt="0693p00000C8LcvAAF.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 20:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331933#M100862</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2021-03-17T20:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: fail to parse the json file error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331934#M100863</link>
      <description>&lt;P&gt;Is your file encoding in UTF8 BOM?&lt;/P&gt;&lt;P&gt;Talend have issues to work with encoding with BOM, and it can also explain the result you obtain with your second job. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 08:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/fail-to-parse-the-json-file-error/m-p/2331934#M100863</guid>
      <dc:creator>MS5</dc:creator>
      <dc:date>2021-03-18T08:41:07Z</dc:date>
    </item>
  </channel>
</rss>

