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:
parent
f77be20c16
commit
d61853430a
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,11 @@ struct JSONObject
|
|||
attr(s);
|
||||
escapeJSON(str, t);
|
||||
}
|
||||
void attr(const string & s, int n)
|
||||
{
|
||||
attr(s);
|
||||
str << n;
|
||||
}
|
||||
};
|
||||
|
||||
struct JSONList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue