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

This commit is contained in:
Alex Fabijanic
2015-03-31 21:43:21 -05:00
parent c2a49cbc63
commit bfe16d25a2
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