Adding JSON and XML serializer for maps