projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e701b43
)
Fix json output.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 7 Apr 2011 09:14:02 +0000
(10:14 +0100)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Thu, 7 Apr 2011 09:14:02 +0000
(10:14 +0100)
json.hpp
patch
|
blob
|
history
diff --git
a/json.hpp
b/json.hpp
index
0bfbabf
..
feaf1ea
100644
(file)
--- a/
json.hpp
+++ b/
json.hpp
@@
-68,11
+68,11
@@
private:
else if (c >= 0x20 && c <= 0x7e)
os << c;
else if (c == '\t')
- os << "\
\
t";
+ os << "\t";
else if (c == '\r')
- os << "\
\
r";
+ os << "\r";
else if (c == '\n')
- os << "
";
+ os << "
\n
";
else {
unsigned octal0 = c & 0x7;
unsigned octal1 = (c >> 3) & 0x7;
@@
-103,6
+103,7
@@
public:
}
inline void beginObject() {
+ separator();
os << "{";
++level;
value = false;