Skip to content

Commit

Permalink
📝 refine documentation of error_handler parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jun 30, 2020
1 parent eb7376b commit ad6eade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/nlohmann/json.hpp
Expand Up @@ -2238,7 +2238,8 @@ class basic_json
@param[in] error_handler how to react on decoding errors; there are three
possible values: `strict` (throws and exception in case a decoding error
occurs; default), `replace` (replace invalid UTF-8 sequences with U+FFFD),
and `ignore` (ignore invalid UTF-8 sequences during serialization).
and `ignore` (ignore invalid UTF-8 sequences during serialization; all
bytes are copied to the output unchanged).
@return string containing the serialization of the JSON value
Expand Down
3 changes: 2 additions & 1 deletion single_include/nlohmann/json.hpp
Expand Up @@ -18168,7 +18168,8 @@ class basic_json
@param[in] error_handler how to react on decoding errors; there are three
possible values: `strict` (throws and exception in case a decoding error
occurs; default), `replace` (replace invalid UTF-8 sequences with U+FFFD),
and `ignore` (ignore invalid UTF-8 sequences during serialization).
and `ignore` (ignore invalid UTF-8 sequences during serialization; all
bytes are copied to the output unchanged).

@return string containing the serialization of the JSON value

Expand Down

0 comments on commit ad6eade

Please sign in to comment.