<?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: tExtractJSONFields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347909#M115104</link>
    <description>&lt;P&gt;Yes, thats what I started with, see screenshot.&lt;/P&gt;&lt;P&gt;same error?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dcgEgAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133215i2CAD95F5C8840DEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dcgEgAAI.png" alt="0695b00000dcgEgAAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 13:30:38 GMT</pubDate>
    <dc:creator>RVeitch_84</dc:creator>
    <dc:date>2023-02-21T13:30:38Z</dc:date>
    <item>
      <title>tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347907#M115102</link>
      <description>&lt;P&gt;I'm trying to use "tExtractJSONFields" and Read By &lt;B&gt;Xpath &lt;/B&gt;to pasrse the following data and its trowing an error related to the "&lt;/P&gt;&lt;P&gt;Machine Name&lt;/P&gt;"&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error on line 1 of document&amp;nbsp;: Attribute name "Name" associated with an element type "Machine" must be followed by the ' = ' character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ERROR] 15:56:51 talendjobs.sqs_test_0_1.sqs_test- tExtractJSONFields_3 - Error on line 1 of document&amp;nbsp;: Attribute name "Name" associated with an element type "Machine" must be followed by the ' = ' character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snip of the Data that I'm trying to parse:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"TransactionId": 5031186299,&lt;/P&gt;&lt;P&gt;	"RemoteStartTransactionId": null,&lt;/P&gt;&lt;P&gt;	"PaymentMethodId": 1,&lt;/P&gt;&lt;P&gt;	"SiteId": 4,&lt;/P&gt;&lt;P&gt;	"MachineTime": "2023-02-20T08:32:56.953",&lt;/P&gt;&lt;P&gt;	"Void": false,&lt;/P&gt;&lt;P&gt;	"MachineId": 868467276,&lt;/P&gt;&lt;P&gt;	"Data": {&lt;/P&gt;&lt;P&gt;		"Machine Name": "81064",&lt;/P&gt;&lt;P&gt;		"Operator Identifier": "K-07/81064"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this with no luck?&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="0695b00000dcee8AAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150370iA5A27822561C2B16/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dcee8AAA.png" alt="0695b00000dcee8AAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have to some how add a space in the xpath query, but can't figure out the syntax ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:04:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347907#M115102</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-11-15T22:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347908#M115103</link>
      <description>&lt;P&gt;Did you try "Machine Name" ?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 12:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347908#M115103</guid>
      <dc:creator>Fabio_Caimi</dc:creator>
      <dc:date>2023-02-21T12:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347909#M115104</link>
      <description>&lt;P&gt;Yes, thats what I started with, see screenshot.&lt;/P&gt;&lt;P&gt;same error?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dcgEgAAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133215i2CAD95F5C8840DEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dcgEgAAI.png" alt="0695b00000dcgEgAAI.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 13:30:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347909#M115104</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2023-02-21T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347910#M115105</link>
      <description>&lt;P&gt;@Robert Veitch​&amp;nbsp;this answer gives you the solution. Look at how "Customer Service" is retrieved....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/feed/0D75b000007wSMJCA2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: JSON Path is used. Probably the better system to use here.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 01:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347910#M115105</guid>
      <dc:creator>rhall1</dc:creator>
      <dc:date>2023-02-22T01:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347911#M115106</link>
      <description>&lt;P&gt;I started out with JSON Path which does work but it gives me sqaure brackets around every field ["81064"] and I have to insert all of this data into a DB so I wanted it without the brackets. 81064 and I have over 140 columns to parse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did find a workaround with Xpath, but would like to know if there is a work around for the  [] issue  in JSON Path?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;["81061"]&amp;nbsp;|["K-04\/81061"]&amp;nbsp;&amp;nbsp;|["INTERAC"]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I don't want to do something like this for 140 cloumns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dctj3AAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131788iA4AD500FE58C9E86/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dctj3AAA.png" alt="0695b00000dctj3AAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 21:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347911#M115106</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2023-02-22T21:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347912#M115107</link>
      <description>&lt;P&gt;I can only presume that your snippet above is part of an array and that maybe the loop path is not specified correctly when you are retrieving the values. Using just the snippet above and this JSON Path expression....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Data.['Machine Name']"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....I get ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;81064&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 21:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347912#M115107</guid>
      <dc:creator>rhall1</dc:creator>
      <dc:date>2023-02-22T21:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347913#M115108</link>
      <description>&lt;P&gt;This is an example of what I was testing with:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000dcucSAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149670i2C866C93EADABF6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000dcucSAAQ.png" alt="0695b00000dcucSAAQ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That returned :&lt;/P&gt;&lt;P&gt;|5041105519&amp;nbsp;&amp;nbsp;|null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|["81065"]&amp;nbsp;|["K-08\/81065"]&amp;nbsp;&amp;nbsp;|["INTERAC"]&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 22:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347913#M115108</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2023-02-22T22:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347914#M115109</link>
      <description>&lt;P&gt;I *think* this is caused by your Json query for MachineName, OperatorIdentifier and Brand being slightly off. Take a look at the section you showed below....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"TransactionId": 5031186299,&lt;/P&gt;&lt;P&gt;"RemoteStartTransactionId": null,&lt;/P&gt;&lt;P&gt;"PaymentMethodId": 1,&lt;/P&gt;&lt;P&gt;"SiteId": 4,&lt;/P&gt;&lt;P&gt;"MachineTime": "2023-02-20T08:32:56.953",&lt;/P&gt;&lt;P&gt;"Void": false,&lt;/P&gt;&lt;P&gt;"MachineId": 868467276,&lt;/P&gt;&lt;P&gt;"Data": {&lt;/P&gt;&lt;P&gt;"Machine Name": "81064",&lt;/P&gt;&lt;P&gt;"Operator Identifier": "K-07/81064"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;..."Machine Name" and "Operator Identifier" are sat within the "Data" object. You have left the "Data" object out of the path and just used ".". If you replace ".['Machine Name']" and ".['Operator Identifier']" with....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Data.['Machine Name']" &lt;/P&gt;&lt;P&gt;"Data.['Operator Identifier']" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....that will fix those two. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see "Brand" in the sample you have given, but I suspect this is due to something similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A good tool to get an idea for JSON Paths is this one.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://jsonpathfinder.com/&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 22:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347914#M115109</guid>
      <dc:creator>rhall1</dc:creator>
      <dc:date>2023-02-22T22:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347915#M115110</link>
      <description>&lt;P&gt;rhall&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the input, that helped!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|5041174753&amp;nbsp;&amp;nbsp;|null&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|81061&amp;nbsp;&amp;nbsp;&amp;nbsp;|K-04/81061&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|VISA |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will continue to test some more tomorrow.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 22:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347915#M115110</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2023-02-22T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: tExtractJSONFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347916#M115111</link>
      <description>&lt;P&gt;Glad to help. It can be a bit tricky to get your head around this stuff to start with, but once you've got a few things figured out, it makes much more sense moving forward &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 22:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tExtractJSONFields/m-p/2347916#M115111</guid>
      <dc:creator>rhall1</dc:creator>
      <dc:date>2023-02-22T22:59:24Z</dc:date>
    </item>
  </channel>
</rss>

