GJSON Syntax still using #[...] because Go < v1.3.0

Last paragraph in https://github.com/tidwall/gjson#path-syntax tipped me off. All examples in this page already use the new notation #(...) and one has to pay attention to the ‘fine print’ to realize why the code isn’t working…

Perhaps https://github.com/influxdata/telegraf/tree/master/plugins/parsers/json could have a warning about this where is says

“Consult the GJSON path syntax for details and examples.”

Good catch, can you open a new issue requesting that we update the gjson version.

Issue submitted as requested.