1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-16 14:57:05 +01:00

Fixed the JSON parsing error

This commit is contained in:
Guido Cossu
2017-07-11 14:31:57 +01:00
parent d9593c4b81
commit 097c9637ee
5 changed files with 5815 additions and 4211 deletions

View File

@ -42,6 +42,7 @@ JSONWriter::~JSONWriter(void)
// write prettified JSON to file
std::ofstream os(fileName_);
std::cout << "JSONWriter::~JSONWriter" << std::endl;
os << std::setw(2) << json::parse(ss_.str()) << std::endl;
}
@ -56,6 +57,7 @@ void JSONWriter::push(const string &s)
void JSONWriter::pop(void)
{
std::cout << "JSONWriter::pop" << std::endl;
delete_comma();
ss_ << "},";
}