repo.or.cz
/
lsnes.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix race between killing object and drawing object
[lsnes.git]
/
src
/
test
/
json-prettyprint.cpp
blob
abf084b3949a2bf840a1d623757979e921684a7f
1
#include
"json.hpp"
2
3
int
main
()
4
{
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
;
13
}