-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[pkg/stanza/operator/parser/json] json parse error #16261
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I believe this is the correct behavior. According to the json specification, newline characters must be escaped. You can read more about this here. The first comment on the accepted answer states it quite well:
|
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
pkg/stanza
What happened?
Description
if the content contains '\n' ,the parser will report an error
Steps to Reproduce
Expected Result
map[body:a
b]
Actual Result
ReadString: invalid control character found: 10, error found in #9 byte of ...|{"body":"a
b"}|..., bigger context ...|{"body":"a
b"}|...
Collector version
0.61.0
Environment information
Environment
go version go1.18.4 darwin/amd64
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: