From e46c090b41a3c2af1a5e30c9c1da1635f6d53b22 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Tue, 4 Jun 2024 16:54:05 +0200 Subject: [PATCH] fix: correctly serialize a Space class to the json format in the JSONExpression --- src/jsonexpression.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jsonexpression.cpp b/src/jsonexpression.cpp index 569ca4f..dc9d539 100644 --- a/src/jsonexpression.cpp +++ b/src/jsonexpression.cpp @@ -155,10 +155,9 @@ void JSONExpression::esc(const pt::Space & space, pt::Stream & stream, const FT else { // when serializing as json put it directly without escaping - pt::TextStream tmp_stream; space.serialize_to_json_stream(tmp_stream, pretty_print); - BaseExpression::esc(tmp_stream, stream, field_type, model_env); + stream << tmp_stream; } }