文件名称:Qt-rapidjson
文件大小:91KB
文件格式:ZIP
更新时间:2024-06-03 11:52:10
C++
Qt-RapidJSON Qt易于使用的RapidJSON( ) 解析为QVariantMap void testParse ( const QByteArray &data) { QVariantMap json = json::parse (data); Q_ASSERT (json[ " name " ]. toString ()== " cplusplus " ); Q_ASSERT (json[ " age " ]. toInt ()== 10 ); QVariantMap detail = json[ " detail " ]. toMap (); Q_ASSERT (detail[ " hasDetail " ]. toBool ()); Q_ASSERT ( qFuzzyIsNull (detail[ " pi " ]
【文件预览】:
Qt-rapidjson-master
----rapidjson_wrapper.h(8KB)
----test()
--------test.pro(330B)
--------main.cpp(1KB)
----.gitignore(302B)
----rapidjson()
--------document.h(81KB)
--------reader.h(56KB)
--------prettywriter.h(8KB)
--------allocators.h(9KB)
--------internal()
--------encodedstream.h(9KB)
--------error()
--------encodings.h(22KB)
--------filereadstream.h(3KB)
--------memorybuffer.h(3KB)
--------msinttypes()
--------writer.h(13KB)
--------rapidjson.h(20KB)
--------memorystream.h(2KB)
--------stringbuffer.h(3KB)
--------filewritestream.h(3KB)
----README.md(1004B)