# How can I recover a json message from a distant server?

**URL:** <https://discourse.nodered.org/t/how-can-i-recover-a-json-message-from-a-distant-server/17217>\
**Category:** General\
**Created:** [28 October 2019 07:35 UTC](https://discourse.nodered.org/t/how-can-i-recover-a-json-message-from-a-distant-server/17217 "2019-10-28T07:35:59Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![chris35](https://avatars.discourse-cdn.com/v4/letter/c/898d66/32.png) [@chris35](https://discourse.nodered.org/u/chris35)\
**Post date:** [29 October 2019 12:43 UTC](https://discourse.nodered.org/t/how-can-i-recover-a-json-message-from-a-distant-server/17217/28 "2019-10-29T12:43:03Z")

</div>

to go further I would like to use the node switch to send the message in a direction according to the value of sensorInstallId  
is it a good idea ?  
I've read [Switch node - jsonata - magic?](https://discourse.nodered.org/t/switch-node-jsonata-magic/12943)  
but I don't understand if the "Key is" exist or not ?

for the moment I've made this

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/303f7059480cfd64f44cb68ae3fd74a24ee8619a.png)

but the property 1 doesn't match .... it's the otherwise property(6) which send a debug message  
What's wrong in my reflexion ?

Thanks

---

_[View the full topic](https://discourse.nodered.org/t/how-can-i-recover-a-json-message-from-a-distant-server/17217)._
