Skip to content

BOM character in JSON output to HttpEndpoint. #87

Open
@murray02

Description

@murray02

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions