# Searching in the array

**URL:** <https://discourse.nodered.org/t/searching-in-the-array/23547>\
**Category:** General\
**Created:** [24 March 2020 08:15 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547 "2020-03-24T08:15:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![micke007](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@micke007](https://discourse.nodered.org/u/micke007)\
**Post date:** [24 March 2020 08:15 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547/1 "2020-03-24T08:15:14Z")

</div>

Hello everyone,

I've tried many times, without success to find out France with the corresponding values in this chart.

Thank you very much for helping.

```auto
[{"id":"4e2a76f3.bed048","type":"tab","label":"Flow 12","disabled":false,"info":""},{"id":"5cf186c6.f3af98","type":"inject","z":"4e2a76f3.bed048","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":40,"wires":[["d2d03780.44cd58"]]},{"id":"d2d03780.44cd58","type":"http request","z":"4e2a76f3.bed048","name":"1","method":"GET","ret":"txt","paytoqs":false,"url":"https://www.data.gouv.fr/fr/datasets/r/a7596877-d7c3-4da6-99c1-2f52d418e881","tls":"","persist":false,"proxy":"","authType":"","x":250,"y":40,"wires":[["ab82f64b.9a7d58"]]},{"id":"ab82f64b.9a7d58","type":"json","z":"4e2a76f3.bed048","name":"","property":"payload","action":"","pretty":false,"x":390,"y":40,"wires":[["d3137f54.aff0b"]]},{"id":"d3137f54.aff0b","type":"change","z":"4e2a76f3.bed048","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.PaysData","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":40,"wires":[["7064af7f.676ab"]]},{"id":"7064af7f.676ab","type":"debug","z":"4e2a76f3.bed048","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":40,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [24 March 2020 08:27 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547/2 "2020-03-24T08:27:28Z")

</div>

Try changing your change node:

 ![Screenshot 2020-03-24 at 09.26.43](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b69d3b7bc9fcdb4405a9c0fd4b3c4e75dcf8fe92.jpeg)

`*.PaysData[Pays="France"]`

---

<div class="post-metadata">

**Author:** ![micke007](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@micke007](https://discourse.nodered.org/u/micke007)\
**Post date:** [24 March 2020 10:09 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547/3 "2020-03-24T10:09:45Z")

</div>

That's perfect thanks! Exactly what I needed. You guys are amazing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 May 2020 10:09 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547/4 "2020-05-23T10:09:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
