ansible.builtin.from_json (v2.16.0) — filter

Convert JSON string into variable structure

| "added in version" historical of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible-core==2.16.0

Description

Converts a JSON string representation into an equivalent structured Ansible variable.

Ansible automatically converts JSON strings into variable structures in most contexts, use this plugin in contexts where automatic conversion does not happen.

Inputs

    
_input:
    description: A JSON string.
    required: true
    type: string

Outputs

_value:
  description: The variable resulting from deserialization of the JSON document.
  type: raw