swap :
rapidjson::GenericDocument< Encoding, Allocator, StackAllocator >