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; } }