Skip to content

Commit 95f48ba

Browse files
authored
Update README.md
Version 0.2.14 described.
1 parent 3dc1a83 commit 95f48ba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Table of Contents
44
* [Table of Contents](#table-of-contents)
55
* [What Is json_dto?](#what-is-json_dto)
66
* [What's new?](#whats-new)
7+
* [v.0.2.14](#v0214)
78
* [v.0.2.13](#v0213)
89
* [v.0.2.12](#v0212)
910
* [v.0.2.11](#v0211)
@@ -66,6 +67,25 @@ working with JSON in various projects.
6667

6768
# What's new?
6869

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+
6989
## v.0.2.13
7090
7191
A new overload `to_json` added that receives an instance of `pretty_writer_params_t` with parameters for RapidJSON's PrettyWriter:

0 commit comments

Comments
 (0)