pretty print json when in debug mode