# How to resolve this error ""msg": "the field 'args' has an invalid value (\[\]), and could not be converted to an dict.The error was: Extra data: line 2 column 1 - line 2 column 317 (char 315 - 631)"

**URL:** <https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515>\
**Category:** Ansible Project\
**Created:** [January 19, 2018, 7:23am UTC](https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515 "2018-01-19T07:23:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumitkumars](https://avatars.discourse-cdn.com/v4/letter/s/e47c2d/32.png) [@sumitkumars](https://forum.ansible.com/u/sumitkumars)\
**Post date:** [January 19, 2018, 7:23am UTC](https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515/1 "2018-01-19T07:23:26Z")

</div>

this is line:

- set\_fact: vwa\_rl\_policy=“{{VWA\_UT\_RL\_Policy.stdout|from\_json}}”

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [January 19, 2018, 3:46pm UTC](https://forum.ansible.com/t/how-to-resolve-this-error-msg-the-field-args-has-an-invalid-value-and-could-not-be-converted-to-an-dict-the-error-was-extra-data-line-2-column-1-line-2-column-317-char-315-631/26515/2 "2018-01-19T15:46:17Z")

</div>

You may be suffering from a limitation of the key=value syntax and how templating is performed.

When used with data like JSON that will return spaces, and when surrounding the value with double quotes, it will allow the resultant value, to break out of the assignment to the specified variable. An Example

- set\_fact: vwa\_rl\_policy=“{“foo”: “bar”}”

Instead you can try to use single quotes, or use full YAML syntax like:

- set\_fact:  
vwa\_rl\_policy: ‘{{VWA\_UT\_RL\_Policy.stdout|from\_json}}’
