summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/json_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Ignore necessary unused imports in module_utils (#79904)Matt Clay2023-02-031-1/+1
|
* module output is only json objects (#73765)Brian Coca2021-03-031-2/+2
| | | | | | * module output is only json objects remove json lists as they are not valid from modules fixes #73744
* Fix boilerplate in setup.py and lib/ansible/ dir.Matt Clay2020-06-221-0/+3
|
* Remove use of simplejson throughout code base (#43548)Matt Martz2018-08-101-4/+2
| | | | | | | | | | * Remove use of simplejson throughout code base. Fixes #42761 * Address failing tests * Remove simplejson from contrib and other outlying files * Add changelog fragment for simplejson removal
* jsonify inventory (#32990)Brian Coca2017-11-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | * jsonify inventory * smarter import, dont pass kwargs where not needed * added datetime * Eventual plan for json utilities to migrate to common/json_utils when we split basic.py no need to move jsonify to another file now as we'll do that later. * json_dict_bytes_to_unicode and json_dict_unicode_to_bytes will also change names and move to common/text.py at that time (not to json). Their purpose is to recursively change the elements of a container (dict, list, set, tuple) into text or bytes, not to json encode or decode (they could be a generic precursor to that but are not limited to that.) * Reimplement the private _SetEncoder which changes sets and datetimes into objects that are json serializable into a private function instead. Functions are more flexible, less overhead, and simpler than an object. * Remove code that handled simplejson-1.5.x and earlier. Raise an error if that's the case instead. * We require python-2.6 or better which has the json module builtin to the stdlib. So this is only an issue if the stdlib json has been overridden by a third party module and the simplejson on the system is 1.5.x or less. (1.5 was released on 2007-01-18)
* Collated PEP8 fixes (#25293)Dag Wieers2017-06-021-0/+1
| | | - Make PEP8 compliant
* only warn if non whitespace junkBrian Coca2017-01-061-1/+4
|
* bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834)Matt Davis2016-10-021-0/+75