How to dispatch this serializer function?

Indeed, I have some doubts:
isstructtype(typeof(v)) # gives true for v=[1], issue?