File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ Table of Contents
4
4
* [ Table of Contents] ( #table-of-contents )
5
5
* [ What Is json_dto?] ( #what-is-json_dto )
6
6
* [ What's new?] ( #whats-new )
7
+ * [ v.0.2.14] ( #v0214 )
7
8
* [ v.0.2.13] ( #v0213 )
8
9
* [ v.0.2.12] ( #v0212 )
9
10
* [ v.0.2.11] ( #v0211 )
@@ -66,6 +67,25 @@ working with JSON in various projects.
66
67
67
68
# What's new?
68
69
70
+ ## v.0.2.14
71
+
72
+ A new overload ` to_strean ` added that receives an instance of ` pretty_writer_params_t ` with parameters for RapidJSON's PrettyWriter:
73
+
74
+ ``` cpp
75
+ std::ofstream target_file{...};
76
+ my_data my_obj;
77
+ ...
78
+ // Make default serialization, without pretty-writer:
79
+ json_dto::to_strean (target_file, my_obj);
80
+
81
+ // Make serialization with pretty-writer:
82
+ json_dto::to_stream (target_file, my_obj,
83
+ json_dto::pretty_writer_params_t{}
84
+ .indent_char(' ')
85
+ .indent_char_count(3u)
86
+ .format_options(rapidjson::kFormatSingleLineArray));
87
+ ```
88
+
69
89
## v.0.2.13
70
90
71
91
A new overload `to_json` added that receives an instance of `pretty_writer_params_t` with parameters for RapidJSON's PrettyWriter:
You can’t perform that action at this time.
0 commit comments