Merge pull request #533 from rafzi/develop
fix JSON stringify to escape special characters
This commit is contained in:
Коммит
6c77947085
|
@ -55,15 +55,11 @@ void Stringifier::stringify(const Var& any, std::ostream& out, unsigned int inde
|
|||
{
|
||||
out << "null";
|
||||
}
|
||||
else if ( any.isString() )
|
||||
else
|
||||
{
|
||||
std::string value = any.convert<std::string>();
|
||||
formatString(value, out);
|
||||
}
|
||||
else
|
||||
{
|
||||
out << any.convert<std::string>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче