This js libaray will help us to format or beautify the Json string so that it will very well beautified String. try it once