pretty print json when saving