How to serialize to JSON in Qt

前端 未结 4 623
梦如初夏
梦如初夏 2021-02-07 13:00

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

4条回答
  •  猫巷女王i
    2021-02-07 13:42

    Parsing JSON with QT using standard QT library.

    BTW: why don't you want to use QJson? It nicely encapsulates all the QScriptValueIterator stuff, making your code easier to read.

提交回复
热议问题