Add function to pretty print json