# Implementing virtual Serial port communication: java with node-red (The Figures are attached in subsequent postings)

**URL:** <https://discourse.nodered.org/t/implementing-virtual-serial-port-communication-java-with-node-red-the-figures-are-attached-in-subsequent-postings/56278>\
**Category:** General\
**Created:** [8 January 2022 02:59 UTC](https://discourse.nodered.org/t/implementing-virtual-serial-port-communication-java-with-node-red-the-figures-are-attached-in-subsequent-postings/56278 "2022-01-08T02:59:47Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 January 2022 18:50 UTC](https://discourse.nodered.org/t/implementing-virtual-serial-port-communication-java-with-node-red-the-figures-are-attached-in-subsequent-postings/56278/26 "2022-01-13T18:50:04Z")

</div>

It seems you (or your team) are developing this Java app. Why don't you send JSON instead of custom strings joined by `&`?

You would have solved this days ago. No string splitting, data values & topics available with zero effort.

Do you understand what the benefit of sending JSON offers? Do you understand what JSON is?

  

Lastly, if you absolutely MUST use this custom strings format, please show me 2 demo strings and how they should look after the function node.

E.g. `xyz&124` should send `{ "topic" : 124 }`

* * *

Ps, to copy the string exactly as it appears in the debug window, use the "copy value" button that appears under your mouse when you hover over the value in the debug window.

---

_[View the full topic](https://discourse.nodered.org/t/implementing-virtual-serial-port-communication-java-with-node-red-the-figures-are-attached-in-subsequent-postings/56278)._
