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

Fixing JSON for complex numbers

This commit is contained in:
Guido Cossu
2017-05-08 21:41:39 +01:00
parent 4ec746d262
commit 8ba0494485
3 changed files with 58 additions and 19 deletions

View File

@ -43,6 +43,7 @@ JSONWriter::~JSONWriter(void)
cout << ss_.str() << endl;
// write prettified JSON to file
std::ofstream os(fileName_);
std::cout << "Writing on file" << std::endl;
os << std::setw(2) << json::parse(ss_.str()) << std::endl;
}