Skip to content

Add decoding.codec.json.lossy option #16406

@jszwedko

Description

@jszwedko

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

Metadata

Metadata

Assignees

Labels

domain: codecsAnything related to Vector's codecs (encoding/decoding)type: featureA value-adding code addition that introduce new functionality.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions