Error module logstash with metricbeat

I don't understand why I get this error after configuring the logstash module in metricbeat.

logstash.node_stats: json: cannot unmarshal object into Go struct field

It'd be useful if you could share the entire log, as well as your config.