#include #include #include #include #include #include "json.hpp" #include "priorityqueue.h" int main(int argc, char** argv) { // read JSON file and store in jsonObject std::ifstream file; file.open(argv[1]); nlohmann::json jsonObject; // Store the contents filename into jsonObject if (file.is_open()) { file >> jsonObject; } std::string sampleName; // Sample key name to iterate nlohmann::json outputJSON; // output JSON file //int currValue = 0; // current key value int n = jsonObject["metadata"]["arraySize"]; class PriorityQueue sampleHeap; sampleHeap.initiateHeap(n); for (auto itr = jsonObject.begin(); itr != jsonObject.end(); ++itr) { if (sampleName != "metadata") { for (auto arrayItr = jsonObject[sampleName].begin(); arrayItr != jsonObject[sampleName].end(); ++arrayItr) { } } } std::cout << outputJSON << std::endl; file.close(); }