Recognos / Metrics.NET

The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application.
Apache License 2.0
639 stars 110 forks source link

BOM character in JSON output to HttpEndpoint. #87

Open murray02 opened 7 years ago

murray02 commented 7 years ago

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.