1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Clarify json behavior with return_content key (#53316)

The docs were not clear enough about what would happen if a JSON response is read.

The actual behavior is that the `json` key is always present in such cases, regardless of this parameter, so by changing a few words, we make the docs clearer to the reader.
This commit is contained in:
Jairo Llopis 2019-03-06 18:40:57 +00:00 committed by Sandra McCann
parent 84ebdb6ed5
commit d29ee2c63e

View file

@ -70,8 +70,8 @@ options:
description:
- Whether or not to return the body of the response as a "content" key in
the dictionary result.
- If the reported Content-type is "application/json", then the JSON is
additionally loaded into a key called C(json) in the dictionary results.
- Independently of this option, if the reported Content-type is "application/json", then the JSON is
always loaded into a key called C(json) in the dictionary results.
type: bool
default: no
force_basic_auth: