ensure json is pretty