forked from mia/Aegisub
Escape the contents of object keys when writing JSON
This commit is contained in:
parent
7deca9f43c
commit
ad695cf0a5
1 changed files with 3 additions and 1 deletions
|
@ -61,7 +61,9 @@ void Writer::Write(Object const& object) {
|
||||||
|
|
||||||
Object::const_iterator it(object.begin()), itend(object.end());
|
Object::const_iterator it(object.begin()), itend(object.end());
|
||||||
while (it != itend) {
|
while (it != itend) {
|
||||||
m_ostr << std::string(tab_depth, '\t') << '"' << it->first << "\" : ";
|
m_ostr << std::string(tab_depth, '\t');
|
||||||
|
Write(it->first);
|
||||||
|
m_ostr << " : ";
|
||||||
Write(it->second);
|
Write(it->second);
|
||||||
|
|
||||||
if (++it != itend)
|
if (++it != itend)
|
||||||
|
|
Loading…
Reference in a new issue