{"success":true,"message":null,"code":0,"data":[{"LotNr":"H73228_44","PartName":"TCS3449","SerialNr":"3D09402250","FmtVer":"v1.0.6","c_time":"Fri-Jan-13-08:29:00-2023","ATIME":"9","AGAIN":"11","ATIME_calib":"9","AGAIN_calib":"11","Peak_shift_F1":"0.1","Peak_shift_F2":"-0.7","Peak_shift_FZ":"0.1","Peak_shift_F3":"-0.7","Peak_shift_F4":"-1.3","Peak_shift_FY":"-0.5","Peak_shift_F5":"-2.2","Peak_shift_FXI":"-0.1","Peak_shift_F6":"-1.1","Peak_shift_F7":"-3.1","Peak_shift_Clear":"-0.9","Peak_shift_IR":"0.2","Peak_shift_Flicker":"-0.8","s_cks":"11.0","responsitivity_F1":"0.959","responsitivity_F2":"1.014","responsitivity_FZ":"1.073","responsitivity_F3":"1.0659999999999998","responsitivity_F4":"1.054","responsitivity_FY":"1.0590000000000002","responsitivity_F5":"1.011","responsitivity_FXI":"1.007","responsitivity_F6":"0.993","responsitivity_F7":"1.032","responsitivity_Clear":"1.004","responsitivity_IR":"0.997","responsitivity_Flicker":"1.01","r_cks":"-13.279000000000002","G31":"1.01","G32":"0.999","G33":"1.024","G34":"0.978","G35":"1.025","G36":"0.982","g3_cks":"-6.018","G41":"0.978","G42":"0.98","G43":"0.994","G44":"0.978","G45":"0.981","G46":"0.982","g4_cks":"-5.893","G51":"0.978","G52":"0.989","G53":"0.979","G54":"0.994","G55":"0.992","G56":"0.982","g5_cks":"-5.914","G61":"0.994","G62":"0.994","G63":"0.994","G64":"0.994","G65":"0.997","G66":"0.991","g6_cks":"-5.964","G71":"0.998","G72":"1.004","G73":"1.002","G74":"1.002","G75":"1.003","G76":"1.0","g7_cks":"-6.009","G81":"1.0","G82":"1.0","G83":"1.0","G84":"1.0","G85":"1.0","G86":"1.0","g8_cks":"-6.0","G91":"1.02","G92":"1.023","G93":"1.019","G94":"1.021","G95":"1.024","G96":"1.036","g9_cks":"-6.143","Ga1":"1.0590000000000002","Ga2":"1.065","Ga3":"1.064","Ga4":"1.065","Ga5":"1.0659999999999998","Ga6":"1.105","g10_cks":"-6.424","Gb1":"1.045","Gb2":"1.051","Gb3":"1.033","Gb4":"1.022","Gb5":"1.04","Gb6":"1.0759999999999998","g11_cks":"-6.267","Gc1":"1.102","Gc2":"1.113","Gc3":"1.067","Gc4":"1.046","Gc5":"1.063","Gc6":"1.1740000000000002","g12_cks":"-6.565","Gd1":"1.304","Gd2":"1.283","Gd3":"1.13","Gd4":"1.09","Gd5":"1.112","Gd6":"1.493","g13_cks":"-7.412000000000001"}],"useTime":88,"srvTime":1686040244843}
时间: 2023-08-11 20:03:03 浏览: 532
这是一个JSON格式的字符串。它包含一个名为"data"的数组,数组中包含一个对象,该对象有许多键和值。如果你想从这个JSON字符串中获取特定的值,可以使用JSON解析器将其转换为一个QJsonObject对象,然后使用QJsonObject的value()函数获取该对象中特定键的值。例如,如果你想获取LotNr的值,可以这样做:
```c++
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
QString jsonString = "{\"success\":true,\"message\":null,\"code\":0,\"data\":[{\"LotNr\":\"H73228_44\",\"PartName\":\"TCS3449\",\"SerialNr\":\"3D09402250\",\"FmtVer\":\"v1.0.6\",\"c_time\":\"Fri-Jan-13-08:29:00-2023\",\"ATIME\":\"9\",\"AGAIN\":\"11\",\"ATIME_calib\":\"9\",\"AGAIN_calib\":\"11\",\"Peak_shift_F1\":\"0.1\",\"Peak_shift_F2\":\"-0.7\",\"Peak_shift_FZ\":\"0.1\",\"Peak_shift_F3\":\"-0.7\",\"Peak_shift_F4\":\"-1.3\",\"Peak_shift_FY\":\"-0.5\",\"Peak_shift_F5\":\"-2.2\",\"Peak_shift_FXI\":\"-0.1\",\"Peak_shift_F6\":\"-1.1\",\"Peak_shift_F7\":\"-3.1\",\"Peak_shift_Clear\":\"-0.9\",\"Peak_shift_IR\":\"0.2\",\"Peak_shift_Flicker\":\"-0.8\",\"s_cks\":\"11.0\",\"responsitivity_F1\":\"0.959\",\"responsitivity_F2\":\"1.014\",\"responsitivity_FZ\":\"1.073\",\"responsitivity_F3\":\"1.0659999999999998\",\"responsitivity_F4\":\"1.054\",\"responsitivity_FY\":\"1.0590000000000002\",\"responsitivity_F5\":\"1.011\",\"responsitivity_FXI\":\"1.007\",\"responsitivity_F6\":\"0.993\",\"responsitivity_F7\":\"1.032\",\"responsitivity_Clear\":\"1.004\",\"responsitivity_IR\":\"0.997\",\"responsitivity_Flicker\":\"1.01\",\"r_cks\":\"-13.279000000000002\",\"G31\":\"1.01\",\"G32\":\"0.999\",\"G33\":\"1.024\",\"G34\":\"0.978\",\"G35\":\"1.025\",\"G36\":\"0.982\",\"g3_cks\":\"-6.018\",\"G41\":\"0.978\",\"G42\":\"0.98\",\"G43\":\"0.994\",\"G44\":\"0.978\",\"G45\":\"0.981\",\"G46\":\"0.982\",\"g4_cks\":\"-5.893\",\"G51\":\"0.978\",\"G52\":\"0.989\",\"G53\":\"0.979\",\"G54\":\"0.994\",\"G55\":\"0.992\",\"G56\":\"0.982\",\"g5_cks\":\"-5.914\",\"G61\":\"0.994\",\"G62\":\"0.994\",\"G63\":\"0.994\",\"G64\":\"0.994\",\"G65\":\"0.997\",\"G66\":\"0.991\",\"g6_cks\":\"-5.964\",\"G71\":\"0.998\",\"G72\":\"1.004\",\"G73\":\"1.002\",\"G74\":\"1.002\",\"G75\":\"1.003\",\"G76\":\"1.0\",\"g7_cks\":\"-6.009\",\"G81\":\"1.0\",\"G82\":\"1.0\",\"G83\":\"1.0\",\"G84\":\"1.0\",\"G85\":\"1.0\",\"G86\":\"1.0\",\"g8_cks\":\"-6.0\",\"G91\":\"1.02\",\"G92\":\"1.023\",\"G93\":\"1.019\",\"G94\":\"1.021\",\"G95\":\"1.024\",\"G96\":\"1.036\",\"g9_cks\":\"-6.143\",\"Ga1\":\"1.0590000000000002\",\"Ga2\":\"1.065\",\"Ga3\":\"1.064\",\"Ga4\":\"1.065\",\"Ga5\":\"1.0659999999999998\",\"Ga6\":\"1.105\",\"g10_cks\":\"-6.424\",\"Gb1\":\"1.045\",\"Gb2\":\"1.051\",\"Gb3\":\"1.033\",\"Gb4\":\"1.022\",\"Gb5\":\"1.04\",\"Gb6\":\"1.0759999999999998\",\"g11_cks\":\"-6.267\",\"Gc1\":\"1.102\",\"Gc2\":\"1.113\",\"Gc3\":\"1.067\",\"Gc4\":\"1.046\",\"Gc5\":\"1.063\",\"Gc6\":\"1.1740000000000002\",\"g12_cks\":\"-6.565\",\"Gd1\":\"1.304\",\"Gd2\":\"1.283\",\"Gd3\":\"1.13\",\"Gd4\":\"1.09\",\"Gd5\":\"1.112\",\"Gd6\":\"1.493\",\"g13_cks\":\"-7.412000000000001\"}],\"useTime\":88,\"srvTime\":1686040244843}";
QJsonDocument doc = QJsonDocument::fromJson(jsonString.toUtf8());
QJsonObject obj = doc.object();
QJsonArray dataArray = obj.value("data").toArray();
QJsonObject dataObject = dataArray.at(0).toObject();
QString lotNr = dataObject.value("LotNr").toString();
```
现在,变量lotNr包含了LotNr的值"H73228_44"。
阅读全文