ansible_mitogen: Replace use of `ansible.parsing.utils.jsonify.jsonify()`
The function is Ansible >= 12 (ansible-core >= 2.19). See #1274 for analysis of `json.dumps()` vs `jsonify()` differences. This change is a middle ground between full backward compatibility and using `json.dumps()` unadorned. - if `data` is `None`, then it will still be transferred as `{}` on older versions of Ansible, but 'null' in newer releases. Cases where 'null' caused a problem are suspected/reported, but no reproducers are available. - `ensure_ascii=True` will be still be tried, with fallback. I believe this is only relevant on Python 2.x. - `sort_keys=True` will no longer be used. - No indentation/pretty printing will be applied, this remains unchanged fixes #1274pull/1280/head
parent
0d6aa99370
commit
667dd4237a
Loading…
Reference in New Issue