How to format the JSON string output(pretty print) using JSON RPC Services

I want to format the JSON string in separate lines. New line or escape sequences are not working.How do I enable pretty printing when using JSON Message

What is your app platform?

You can format server response in the TROServer.OnWriteToStream or TROJSONMessage.OnWriteToStream events.