Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

new line character issue with JSON

$
0
0
Hi Sir madam,

pdi ce 6.1,Mysql 5.7.11 and java 1.7 versions

I am facing issue (DOS format was specified but only a single line feed character was found, not 2)
i.e. new line characters issue for my json .ktr. tried a lot but there is no luck.

Could you please help on this. i attached my ktr and sample text also. if need any more info i will post here.
my sample text is below ( i am reading this is from database). getting issue with text in below sample: JCpolicy16001\nJCpolicy16001 in below text.

1116 [{"id": 1, "comments": "JCpolicy16001", "createdBy": 4627, "updatedBy": 4627, "entityName": "ServicePolicy", "commentType": "External", "createdDate": "02-17-2016 13:16:53", "updatedDate": "02-17-2016 13:16:53", "createdByUser": "jc admin117", "updatedByUser": "jc admin117"}, {"id": 2, "comments": "JCpolicy16001\nJCpolicy16001", "createdBy": 4627, "updatedBy": 4627, "entityName": "ServicePolicy", "commentType": "Internal", "createdDate": "02-17-2016 13:16:53", "updatedDate": "02-17-2016 13:16:53", "createdByUser": "jc admin117", "updatedByUser": "jc admin117"}, {"id": 3, "comments": "JCpolicy16001\nexclusion", "createdBy": 4627, "updatedBy": 4627, "entityName": "ServicePolicy", "commentType": "Exclusion", "createdDate": "02-17-2016 13:16:53", "updatedDate": "02-17-2016 13:16:53", "createdByUser": "jc admin117", "updatedByUser": "jc admin117"}]


COMMENTS_OLTP_FILE.ktr

Thank you
Attached Files

Viewing all articles
Browse latest Browse all 16689


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>