[resolved] seperating json data into different columns
hi, i have been trying to seperate the received json file data into different columns, but i cannot do it, i have used 'twritejsonfield' but the columns are getting the name of the column also..i just want the values to get loaded..some one please help..
hi, i have used 'textractjson' to parse columns for the first two columns id and meta its working fine but for 'payload' column i am getting a error as:
'Oct 08, 2014 11:05:59 AM net.sf.json.xml.XMLSerializer getType
INFO: Using default type string Error on line 1 of document : An invalid XML character (Unicode: 0x8) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x8) was found in the element content of the document.'
can you please help me with the error. The job screenshot is attached along with the screenshot of the components detail. op data expected ip data
i used tmap to trim the columns which were giving error but now a new error is coming up kindly see the screenshot. i tried using tmap after textractjson also but then the previous error used to come.
you have to modified your source file (json) I guess. Trim your data after parsing json file is 'too late'.
So add a 'cleansing job' to normalize it and be able to parse it with talend component. (try an hexa editor to find this caracter in source)
hope it help
regards
laurent
i should be using this in tjava component right?? if yes where i should be placing it in my job...for reference screenshots are already attached in previous posts. thanks for your help...