write pretty json