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

BOM character in JSON output to HttpEndpoint. #87

Open
murray02 opened this issue Sep 25, 2017 · 0 comments
Open

BOM character in JSON output to HttpEndpoint. #87

murray02 opened this issue Sep 25, 2017 · 0 comments

Comments

@murray02
Copy link

I have noticed that the output of the JSON from the HttpEndpoint contains a BOM character which is preventing other clients like Telegraf from reading the JSON. The httpjson input for Telegraf errors out on:

[inputs.httpjson]: unable to parse out as JSON, invalid character 'ï' looking for beginning of value

If you wget the httpendpoint and open the file with a text editor you can see the encoding is UTF-8 BOM.

Writing the BOM character is not always desirable. I would like to request that the JSON parser in Metrics.Net omit the BOM character going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant