Dashboard import error

Hi All,

when i am trying to import a dashboard and i am getting below error, what could be the issue.

{“changed”: false, “msg”: “error : Can’t load json file ‘encoding’ is an invalid keyword argument for this function”}

Dashboard import code which i used.

  • name: Import Grafana dashboard foo
    grafana_url: “{{ grafana_url }}”
    grafana_api_key: “{{ token }}”
    state: present
    commit_message: Updated by ansible
    overwrite: true
    path: /tmp/dashboards/kafka_main.json

When i remove encoding section from below file, it is able to import it, but this may not be the proper solution.