How can I JSON serialize a QVariant (or other type of data) in Qt. I don\'t want to use an external third party library like QJson
See this JSON Save Game example on serialization of an object to a JSON document.