That would only change any quotes that happened to make it into the CSV file itself.
Try it with as value in one your character variables you are sending that contains a comma. In which case you will get a CSV file list this:
ID,LIST
1,1
2,"2,3,4"
3,5
The reason I did it is that you are stuffing that CSV file into a quoted string in the JSON file. In JSON you normally want use C/Unix style "escape" characters instead of normal SAS syntax of doubling embedded quotes.
In SAS you would include a quote in a string literal like this:
"He said ""Hello"" to me"
But in those systems they want you to use this goofy syntax instead:
"He said \"Hello\" to me"
There are other things you might need to "escape". For example you might want to turn any existing \ into \\ to prevent the reader of the JSON string from thinking a string like this
i\need
has a newline (linefeed) character in it. If you change the \ to \\ make sure you do it before changing the " to \".
... View more