Support config patch in c contract library. (#219)

This commit is contained in:
Savinda Senevirathne
2021-01-15 14:49:54 +05:30
committed by GitHub
parent 0914994772
commit fa0c1e8130
3 changed files with 353 additions and 54 deletions

View File

@@ -896,6 +896,7 @@ namespace conf
{
jsoncons::json_options options;
options.object_array_line_splits(jsoncons::line_split_kind::multi_line);
options.spaces_around_comma(jsoncons::spaces_option::no_spaces);
std::ostringstream os;
os << jsoncons::pretty_print(d, options);
json = os.str();