added flags FT::json and FT::space for pt::Space class - serializing/parsing to/from json/space
This commit is contained in:
@@ -586,8 +586,13 @@ void BaseExpression::esc(const pt::WTextStream & val, pt::TextStream & stream, c
|
||||
void BaseExpression::esc(const pt::Space & space, pt::TextStream & stream, const FT & field_type)
|
||||
{
|
||||
pt::WTextStream tmp_stream;
|
||||
bool pretty_print = field_type.is_pretty_print();
|
||||
|
||||
if( field_type.is_space() )
|
||||
space.serialize_to_space_stream(tmp_stream, pretty_print);
|
||||
else
|
||||
space.serialize_to_json_stream(tmp_stream, pretty_print);
|
||||
|
||||
space.serialize_to_space_stream(tmp_stream, true);
|
||||
esc(tmp_stream, stream, field_type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user