mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 16:48:06 +02:00
added Var::isBoolean() and fixed JSON stringifier
This commit is contained in:
@@ -55,6 +55,10 @@ void Stringifier::stringify(const Var& any, std::ostream& out, unsigned int inde
|
||||
{
|
||||
out << "null";
|
||||
}
|
||||
else if ( any.isNumeric() || any.isBoolean() )
|
||||
{
|
||||
out << any.convert<std::string>();
|
||||
}
|
||||
else
|
||||
{
|
||||
std::string value = any.convert<std::string>();
|
||||
|
Reference in New Issue
Block a user