fixed writing to json

This commit is contained in:
Dominik Tomičević 2015-10-13 20:44:14 +02:00
parent be9e115339
commit 6dd0e9cb0c
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public:
// dump properties in this buffer
node->properties.accept(writer);
writer.finish();
// respond to the use with the buffer
return res.send(buffer.str());

View File

@ -20,6 +20,7 @@ inline std::ostream& operator<<(std::ostream& stream, Vertex& record)
// dump properties in this buffer
record.properties.accept(writer);
writer.finish();
return stream << "Vertex"
<< "(xmin = " << record.tx.min()