-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add lossy option to
parse_json
function (#988)
* feat: Add lossy argument to parse_json function * docs: Add changelog * Update 269.feature.md Co-authored-by: Jesse Szwedko <[email protected]> * Update 269.feature.md --------- Co-authored-by: Jesse Szwedko <[email protected]>
- Loading branch information
1 parent
4dc1f26
commit 8289523
Showing
2 changed files
with
69 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The `parse_json` function now accepts an optional `lossy` parameter (which defaults to `true`). | ||
|
||
This new parameter allows to control whether the UTF-8 decoding should be lossy or not, replacing | ||
invalid UTF-8 sequences with the Unicode replacement character (U+FFFD) if set to `true` or raising an error | ||
if set to `false` and an invalid utf-8 sequence is found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters