I have a Delphi XE2 Datasnap server and I need to receive a string with line breaks from a database and resend it as a JSON String to the client application. The problem is I'm receiving the string with #10#13 line breaks, and my client expects \n linebreaks. That seems to be the JSON default way of sending line breaks and I was expecting the conversion to be automatic, but seemingly it isn't so.
I'm thinking of implementing a method for conversion of my own, but that would be in a worst-case scenario, and I want to avoid a possible "reinvent the wheel" scenario. So my question is, is there a better option?