fix: correctly serialize a Space class to the json format in the JSONExpression

This commit is contained in:
Tomasz Sowa 2024-06-04 16:54:05 +02:00
parent cd067ae5c3
commit e46c090b41
Signed by: tomasz.sowa
GPG Key ID: 662CC1438638588B
1 changed files with 1 additions and 2 deletions

View File

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