# How can I filter out 1 JSON input from another?

**URL:** <https://discourse.nodered.org/t/how-can-i-filter-out-1-json-input-from-another/84557>\
**Category:** General\
**Created:** [15 January 2024 10:31 UTC](https://discourse.nodered.org/t/how-can-i-filter-out-1-json-input-from-another/84557 "2024-01-15T10:31:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![questuk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/questuk/32/4059_2.png) [@questuk](https://discourse.nodered.org/u/questuk)\
**Post date:** [15 January 2024 13:12 UTC](https://discourse.nodered.org/t/how-can-i-filter-out-1-json-input-from-another/84557/5 "2024-01-15T13:12:06Z")

</div>

Hi Steve

Thanks for being so patient 🙂

In a previous question on here you recommended to ..

> [@How can I receive & send Data in Node-RED as JSON ... in a easy to understand way?](https://discourse.nodered.org/t/how-can-i-receive-send-data-in-node-red-as-json-in-a-easy-to-understand-way/84242/10):
>
> PS:
> 
> a better topic structure would be `module/22/xxxxx` this way you can subscribe to all modules `module/#` or a single module `module/22/#` or a specif topic of all modules `module/+/temperature`

So that is what I have done, the topic structure is now ... `module/99/data/output/json`

My intention is to output all data from my Arduino sensors using this but just changing the 99 to an Arduino micro controller ID in my home, there are about 10 of them all with there own ID ... 99 , 10, 11 12, etc.

Then selecting the data I require using the topic and the correct ID, with the various payloads I require ...  
payload.temperature  
payload.humidity  
payload.lighting  
payload.PIR  
etc  
Example ... `module/12/data/output/json` then I require separately _temperature_ and _lighting_ from this Arduino.

So am I doing the extraction of the data correctly or is there a more simple way ?

As at the moment it seem as I have to use ...

 ![08](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b420ec8066ce8748613c8368cf9d13f8b87cb861.png)

Hopefully that all make sense 🙄  
It's just as I am changing how I was doing it, to the new way I want to get it correct from the start.  
Thanks again

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-filter-out-1-json-input-from-another/84557)._
