mirror of https://github.com/odrling/Aegisub
Escape the contents of object keys when writing JSON
This commit is contained in:
parent
7deca9f43c
commit
ad695cf0a5
|
@ -61,7 +61,9 @@ void Writer::Write(Object const& object) {
|
|||
|
||||
Object::const_iterator it(object.begin()), itend(object.end());
|
||||
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);
|
||||
|
||||
if (++it != itend)
|
||||
|
|
Loading…
Reference in New Issue