I am trying to use the DataSnap REST server component in Delphi 10.2 Tokyo.
I met an issue when I sent the web response, indeed the browser is receiving a string (the JSON that I have sent) but it did not manage to see it as a "correct" JSON.
Here are some details of my code :
my server method returns a string (the JSON string)
in the webmodule I have added that in the procedure WebModuleBeforeDispatch
:
Response.ContentType := 'application/json';
Is there a way to do send this "correct" JSON ?