# Jmespath error when using "multiselect"

**URL:** <https://forum.alumio.com/t/jmespath-error-when-using-multiselect/1408>\
**Category:** Incoming Configuration\
**Created:** [November 14, 2024, 9:57am UTC](https://forum.alumio.com/t/jmespath-error-when-using-multiselect/1408 "2024-11-14T09:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peep\_toppy](https://forum.alumio.com/letter_avatar_proxy/v4/letter/p/e19adc/32.png) [@peep\_toppy](https://forum.alumio.com/u/peep_toppy)\
**Post date:** [November 14, 2024, 9:57am UTC](https://forum.alumio.com/t/jmespath-error-when-using-multiselect/1408/1 "2024-11-14T09:57:41Z")

</div>

Hey,

I’m getting a couple of errors when using the following jmespath expression `source.items[].{id: product_id, name: name, qty: qty_invoiced}` while this expression works fine when using the homepage of jmespath with the same data. I’m getting the following error:

```auto
JmesPath\SyntaxErrorException: Syntax error at character 0
source.items[].{id: product_id, name: name, qty: qty_invoiced
^
Expected one of the following: colon; found eof "" in /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php:466
Stack trace:
#0 /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php(485): JmesPath\Parser->syntax(Array)
#1 /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php(359): JmesPath\Parser->next(Array)
#2 /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php(163): JmesPath\Parser->parseKeyValuePair()
#3 /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php(97): JmesPath\Parser->nud_lbrace()
#4 /resources/fileshare/deployer/releases/2024-11-13-02-56-38-b55c63b/vendor/mtdowling/jmespath.php/src/Parser.php(352): JmesPath\Parser->expr(9)

```

When using the a value setter with the following expression: `&{source.items[].{id: product_id, name: name, qty: qty_invoiced}}`

The error seems to parse the expression with a `}` missing at the end?

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [November 14, 2024, 10:00am UTC](https://forum.alumio.com/t/jmespath-error-when-using-multiselect/1408/2 "2024-11-14T10:00:30Z")

</div>

Hi @peep_toppy,

If you want to have syntax with curly braces, you should escape the closing brace, as shown below.

```auto
 &{source.items[].{id: product_id, name: name, qty: qty_invoiced\}}

```

Please give it a try and let us know if it doesn’t work.
