mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
Poco::JSON::PrintHandler not working for objects in array #766
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user