Support serialization with indent