How to format the lines and spaces coming as JSON

Hi All,
I need some help with formatting the incoming JSON data eg. comments , which would have some lines and spaces. I want the spacing in the same way how it was posted