Refactored edgeinfo serialization