1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Support control characters in JSON output

This commit is contained in:
Eelco Dolstra 2014-09-30 00:41:18 +02:00
parent f77be20c16
commit d61853430a
2 changed files with 8 additions and 0 deletions

View file

@ -36,6 +36,11 @@ struct JSONObject
attr(s);
escapeJSON(str, t);
}
void attr(const string & s, int n)
{
attr(s);
str << n;
}
};
struct JSONList