<?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 out element namming problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246684#M32134</link>
    <description>&lt;P&gt;you are really right !!!&lt;/P&gt;&lt;P&gt;but in the true life... that's not always possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Oct 2018 12:47:50 GMT</pubDate>
    <dc:creator>iztoogood</dc:creator>
    <dc:date>2018-10-06T12:47:50Z</dc:date>
    <item>
      <title>json out element namming problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246682#M32132</link>
      <description>&lt;P&gt;hello,&lt;/P&gt; 
&lt;P&gt;thanks to the explaination of the topic&lt;/P&gt; 
&lt;P&gt;39421#M11049&lt;/P&gt; 
&lt;P&gt;i've manage to out a json structured like this :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="json.png" style="width: 856px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0O1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145110iEA7901052E5A7B41/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0O1.png" alt="0683p000009M0O1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;[
	{
		"key": "1",
		"key_datas": {
			"key_date": "2018-06-30T23:02:00"
		}
	},
	{
		"key": "2",
		"key_datas": {
			"key_date": "1974-06-30T12:30:00"
		}
	},
	{
		"key": "3",
		"key_datas": {
			"key_date": "2006-09-04T11:30:00"
		}
	}
]&lt;/PRE&gt; 
&lt;P&gt;but in need to out the "key_date" element as : "date(date_key)"&lt;/P&gt; 
&lt;P&gt;that mean a full out like this :&lt;/P&gt; 
&lt;PRE&gt;[
	{
		"key": "1",
		"key_datas": {
			"date(key_date)": "2018-06-30T23:02:00"
		}
	},
	{
		"key": "2",
		"key_datas": {
			"date(key_date)": "1974-06-30T12:30:00"
		}
	},
	{
		"key": "3",
		"key_datas": {
			"date(key_date)": "2006-09-04T11:30:00"
		}
	}
]&lt;/PRE&gt; 
&lt;P&gt;the only ugly solution i've found is to string replace with a tJavarow&lt;/P&gt; 
&lt;PRE&gt;String jsonStrReplaced = row3.json;
jsonStrReplaced =StringHandling.CHANGE(jsonStrReplaced, "key_date", "date(key_date)");
output_row.jsonStrReplaced = jsonStrReplaced;&lt;/PRE&gt; 
&lt;P&gt;do any one has a smarter solution ?&lt;/P&gt; 
&lt;P&gt;when i try a to name it in tWriteJsonField, i have a&lt;/P&gt; 
&lt;P&gt;rg.xml.sax.SAXParseException&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 11:52:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246682#M32132</guid>
      <dc:creator>iztoogood</dc:creator>
      <dc:date>2018-10-06T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: json out element namming problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246683#M32133</link>
      <description>&lt;P&gt;always possible to find bypass (like You already do), but always better to talk with developers about following standards:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://jsonapi.org/format/#document-member-names" target="_self" rel="nofollow noopener noreferrer"&gt;http://jsonapi.org/format/#document-member-names&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The following characters &lt;/SPAN&gt;&lt;STRONG&gt;MUST NOT&lt;/STRONG&gt;&lt;SPAN&gt; be used in member names:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;...
U+0025 PERCENT SIGN, “%”
U+0026 AMPERSAND, “&amp;amp;”
U+0027 APOSTROPHE, “’”
U+0028 LEFT PARENTHESIS, “(“
U+0029 RIGHT PARENTHESIS, “)”
...&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 12:25:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246683#M32133</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-10-06T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: json out element namming problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246684#M32134</link>
      <description>&lt;P&gt;you are really right !!!&lt;/P&gt;&lt;P&gt;but in the true life... that's not always possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 12:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/json-out-element-namming-problem/m-p/2246684#M32134</guid>
      <dc:creator>iztoogood</dc:creator>
      <dc:date>2018-10-06T12:47:50Z</dc:date>
    </item>
  </channel>
</rss>

