Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add decoding.codec.json.lossy option #16406

Closed
jszwedko opened this issue Feb 13, 2023 · 0 comments · Fixed by #17628
Closed

Add decoding.codec.json.lossy option #16406

jszwedko opened this issue Feb 13, 2023 · 0 comments · Fixed by #17628
Assignees
Labels
domain: codecs Anything related to Vector's codecs (encoding/decoding) type: feature A value-adding code addition that introduce new functionality.

Comments

@jszwedko
Copy link
Member

jszwedko commented Feb 13, 2023

A note for the community

  • Please vote on this issue by adding a 👍 reaction 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

Use Cases

Users wish to decode JSON with invalid UTF-8 characters (see #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

Version

vector 0.27.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: codecs Anything related to Vector's codecs (encoding/decoding) type: feature A value-adding code addition that introduce new functionality.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants