#include #include "simdjson/jsonioutil.h" #include "simdjson/jsonminifier.h" int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << "Usage: " << argv[0] << " \n"; exit(1); } std::string_view p; std::string filename = argv[argc - 1]; try{ p = get_corpus(filename); } catch (const std::exception& e) { std::cout << "Could not load the file " << filename << std::endl; return EXIT_FAILURE; } jsonminify(p, (char *)p.data()); printf("%s",p.data()); aligned_free((void*)p.data()); }