heapsort.cxx 481 B

123456789101112131415161718192021
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <string>
  4. #include <fstream>
  5. #include <sstream>
  6. #include "json.hpp"
  7. int main(int argc, char** argv) {
  8. // read JSON file and store in jsonObject
  9. std::ifstream file;
  10. file.open(argv[1]);
  11. nlohmann::json jsonObject;
  12. // Store the contents filename into jsonObject
  13. if (file.is_open()) {
  14. file >> jsonObject;
  15. }
  16. std::string sampleName; // Sample key name to iterate
  17. nlohmann::json outputJSON; // output JSON file
  18. }