mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00
json fixes
This commit is contained in:
parent
ec1997c2e5
commit
7ac9af2f5b
@ -146,6 +146,8 @@ bool ComboBoxCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
else
|
||||
out << getFormatter()->format(sel);
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -70,6 +70,8 @@ bool DateFieldCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << "'" << getFormatter()->format(getValue()) << "'";
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,7 @@ const Any& ListBoxCell::getSelected() const
|
||||
|
||||
bool ListBoxCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << name;
|
||||
out << name << ":";
|
||||
if (hasSelected())
|
||||
{
|
||||
const Poco::Any& sel = getSelected();
|
||||
@ -180,6 +180,8 @@ bool ListBoxCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
else
|
||||
out << ":" << getFormatter()->format(sel);
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -61,6 +61,8 @@ bool NumberFieldCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << getFormatter()->format(getValue());
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -59,6 +59,8 @@ bool PasswordFieldCell::serializeJSON(std::ostream& out, const std::string& name
|
||||
{
|
||||
out << "'" << getFormatter()->format(getValue()) << "'";
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -80,6 +80,8 @@ bool TextEditCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << "'" << getFormatter()->format(getValue()) << "'";
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,8 @@ bool TextFieldCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << "'" << getFormatter()->format(getValue()) << "'";
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -85,6 +85,8 @@ bool TimeFieldCell::serializeJSON(std::ostream& out, const std::string& name)
|
||||
{
|
||||
out << "'" << getFormatter()->format(getValue()) << "'";
|
||||
}
|
||||
else
|
||||
out << "''";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user