# Variables containing -

**URL:** <https://forum.ansible.com/t/variables-containing/35882>\
**Category:** Ansible Project\
**Created:** [October 16, 2021, 6:57am UTC](https://forum.ansible.com/t/variables-containing/35882 "2021-10-16T06:57:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Kommareddy](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@Anil\_Kommareddy](https://forum.ansible.com/u/Anil_Kommareddy)\
**Post date:** [October 16, 2021, 6:57am UTC](https://forum.ansible.com/t/variables-containing/35882/1 "2021-10-16T06:57:42Z")

</div>

Hi All,

I am retrieving data from storage array. The results are in json format. These results contain variables with “-” i.e. minus symbol in their names. When I try to access data in those variables, I get an error “Make sure your variable name does not contain invalid characters like ‘-’: unsupported operand type”.

Is there any way I can escape - symbol in variable name. I am trying to access the variable in the following format {{ result.json.cli-parameters }}.

Thanks  
Anil
