Add a string prettify method which formats the json nicely