Make mysql returner use json to serializer return

See issue #9590

Using str to serializer data is a bad idea as there is no good way
to safely and reliable deserialize it. JSON allows this, and is what
the postgresql returner uses.