pretty print serialization