mirror of
https://github.com/NixOS/nix.git
synced 2025-11-10 20:46:01 +01: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