Fix race between killing object and drawing object
[lsnes.git] / src / test / json-prettyprint.cpp
blobabf084b3949a2bf840a1d623757979e921684a7f
1 #include "json.hpp"
3 int main()
5 std::string doc;
6 std::string line;
7 while(std::getline(std::cin, line))
8 doc = doc + line + "\n";
9 JSON::node n(doc);
10 JSON::printer_indenting printer;
11 std::cout << n.serialize(&printer);
12 return 0;