From 6dd0e9cb0c36bb9be5158f993d008e26f9d82e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Tomic=CC=8Cevic=CC=81?= Date: Tue, 13 Oct 2015 20:44:14 +0200 Subject: [PATCH] fixed writing to json --- api/resources/node.hpp | 1 + storage/vertex.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/api/resources/node.hpp b/api/resources/node.hpp index 451854e91..54b88265c 100644 --- a/api/resources/node.hpp +++ b/api/resources/node.hpp @@ -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()); diff --git a/storage/vertex.hpp b/storage/vertex.hpp index 2c815a0cf..56dee9fd6 100644 --- a/storage/vertex.hpp +++ b/storage/vertex.hpp @@ -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()