diff --git a/common/include/villas/buffer.hpp b/common/include/villas/buffer.hpp
index 7792cf8f3..0fc4fa5f1 100644
--- a/common/include/villas/buffer.hpp
+++ b/common/include/villas/buffer.hpp
@@ -48,7 +48,7 @@ public:
 
 	int parseJson(json_t **j);
 
-	int appendJson(json_t *j, int flags = JSON_INDENT(4));
+	int appendJson(json_t *j, int flags = 0);
 };
 
 } /* namespace villas */
diff --git a/common/include/villas/json_buffer.hpp b/common/include/villas/json_buffer.hpp
index 260afab14..187561aee 100644
--- a/common/include/villas/json_buffer.hpp
+++ b/common/include/villas/json_buffer.hpp
@@ -39,7 +39,7 @@ protected:
 
 public:
 	/** Encode JSON document /p j and append it to the buffer */
-	int encode(json_t *j, int flags = JSON_INDENT(4));
+	int encode(json_t *j, int flags = 0);
 
 	/** Decode JSON document from the beginning of the buffer */
 	json_t * decode();