Implement map serialization handler