mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Fix for #409
This commit is contained in:
parent
0391a9c715
commit
88042c7958
@ -392,7 +392,7 @@ class JSON
|
|||||||
bool skip = true;
|
bool skip = true;
|
||||||
for( auto &p : *internal.Map ) {
|
for( auto &p : *internal.Map ) {
|
||||||
if( !skip ) { s += ",\n"; }
|
if( !skip ) { s += ",\n"; }
|
||||||
s += ( pad + "\"" + p.first + "\" : " + p.second.dump( depth + 1, tab ) );
|
s += ( pad + "\"" + json_escape(p.first) + "\" : " + p.second.dump( depth + 1, tab ) );
|
||||||
skip = false;
|
skip = false;
|
||||||
}
|
}
|
||||||
s += ( "\n" + pad.erase( 0, 2 ) + "}" ) ;
|
s += ( "\n" + pad.erase( 0, 2 ) + "}" ) ;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user