Add the json as the default parser
This commit is contained in:
@@ -24,7 +24,7 @@ func (p *Parser) Parse(dataFormat string, out []byte, acc telegraf.Accumulator)
|
|||||||
var metric telegraf.Metric
|
var metric telegraf.Metric
|
||||||
|
|
||||||
switch dataFormat {
|
switch dataFormat {
|
||||||
case "json":
|
case "","json":
|
||||||
var jsonOut interface{}
|
var jsonOut interface{}
|
||||||
err = json.Unmarshal(out, &jsonOut)
|
err = json.Unmarshal(out, &jsonOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user