# Can we make conditional mapping using JMESPath?

**URL:** <https://forum.alumio.com/t/can-we-make-conditional-mapping-using-jmespath/584>\
**Category:** Mappers\
**Created:** [May 10, 2023, 10:34am UTC](https://forum.alumio.com/t/can-we-make-conditional-mapping-using-jmespath/584 "2023-05-10T10:34:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 12, 2023, 12:29pm UTC](https://forum.alumio.com/t/can-we-make-conditional-mapping-using-jmespath/584/2 "2023-05-12T12:29:58Z")

</div>

Hi @kjetil

Could you please confirm whether the below data is what you mentioned?

```auto
{
  "displayType": "text" // its value can be "text" or "select"
}

```

If it’s correct, it’s better to use a Value Mapper and a [Dictionary Map](https://forum.alumio.com/t/how-to-map-with-dictionary-map/267) such as below.

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/1X/3a3aa165e7029d3c93ba792462a15236ff0e4994.png)

Feel free to let me know if this is not the case.

---

_[View the full topic](https://forum.alumio.com/t/can-we-make-conditional-mapping-using-jmespath/584)._
