Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.8.0
-
None
-
None
Description
If there is backslash sequence (like \t, \n, etc) in the input, CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) in output record.
For example, input record:
case,a,a1
tab,=\t=,-
Update Record with `/a1: /a` (just copy value from one field to another)
JsonRecordSetWriter will produce:
[{"case":"tab","a":"=\t=","a1":"=\t="}]
and CSVRecordSetWriter will produce:
case,a,a1
tab,= =,= =
there is a actual "tab" in between "="
In JSON objecr above, \t mean escaped tab. The actual issue is coming from both CSV Reader and Writer.
Reader converts unescaped sequence of characters into actual character, but Writer doesn't escape them back when writes results, while JSON Writer does that.