### A note for the community <!-- Please keep this note for the community --> * Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request * If you are interested in working on this issue or have submitted a pull request, please leave a comment <!-- Thank you for keeping this note for the community --> ### Use Cases Users wish to decode JSON with invalid UTF-8 characters (see https://github.com/vectordotdev/vector/pull/16300). ### Attempted Solutions _No response_ ### Proposal The `json` codec gains a `lossy` option to control whether the incoming bytes are strictly interpreted as UTF-8. The option would be used like: ``` decoding.codec.json.lossy = false # default to true ``` ### References - https://github.com/vectordotdev/vector/issues/11577 - https://github.com/vectordotdev/vector/issues/10571 - https://github.com/vectordotdev/vector/pull/16300 ### Version vector 0.27.0
A note for the community
Use Cases
Users wish to decode JSON with invalid UTF-8 characters (see #16300).
Attempted Solutions
No response
Proposal
The
jsoncodec gains alossyoption to control whether the incoming bytes are strictly interpreted as UTF-8.The option would be used like:
References
String::from_utf8#10571Version
vector 0.27.0