QTで以下に示すようなjsonファイルを読み込もうとしています。誰かがjsonオブジェクトから値を取得し、test_cell2.CELLS [0]や何らかの方法で別のコンテナや配列に格納する方法を提案することができます。これにより、ネストも処理できるようになりますし、ファイルの解析後に簡単にアクセスできますQT JSONファイルを読み込んで値を保存して検索する
"test_cells2" : {
"CELLS" : {
"cell_0" : {
"prettyName" : "cell_1",
"CELLS" : {
"cell_1" : {
"prettyName" : "cell_1",
"type" : "default",
},
},
},
"cell_1" : {
"prettyName" : "cell_1",
"type" : "default",
},
"cell_2" : {
"type" : "text cell ko",
},
"cell_3" : {
"prettyName" : "cell_3",
"type" : "default",
},
"cell_4" : {
"data" : {
"settings" : {
"EXEC_PARAMETERS" : {
"defaultQueue" : "batch",
"environment" : {
"blabla" : "blabla2",
},
},
},
},
"type" : "parallel_test",
},
},
},
可能な重複http://stackoverflow.com/questions/15893040を/ how-to-create-read-write-json-files-in-qt5) –