adds pretty json format printing for json responses