Poco::JSON::PrintHandler not working for objects in array #766

This commit is contained in:
Alex Fabijanic
2015-03-31 21:35:34 -05:00
parent 2feb15eb19
commit fea66f4dbc
3 changed files with 65 additions and 10 deletions

View File

@@ -109,12 +109,14 @@ private:
unsigned indent();
bool printFlat() const;
void arrayValue();
bool array() const;
std::ostream& _out;
unsigned _indent;
std::string _tab;
bool _array;
int _array;
bool _value;
bool _objStart;
};
@@ -124,6 +126,13 @@ inline void PrintHandler::setIndent(unsigned indent)
}
inline bool PrintHandler::array() const
{
return _array > 0;
}
}} // namespace Poco::JSON