17 lines
254 B
C++
17 lines
254 B
C++
#include "json.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (argc < 2) {
|
|
std::cout << "No JSON specified" << std::endl;
|
|
}
|
|
|
|
JSONNode root = JSONParseFile(argv[1]);
|
|
root.PrettyPrint("", true);
|
|
|
|
root.Free();
|
|
|
|
return 0;
|
|
}
|