# Splitting a msg line with Split or Function?

**URL:** <https://discourse.nodered.org/t/splitting-a-msg-line-with-split-or-function/9636>\
**Category:** General\
**Created:** [31 March 2019 15:49 UTC](https://discourse.nodered.org/t/splitting-a-msg-line-with-split-or-function/9636 "2019-03-31T15:49:06Z")\
**Posts on this page:** 1\
**Showing post:** 12

<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 23:43 UTC](https://discourse.nodered.org/t/splitting-a-msg-line-with-split-or-function/9636/12 "2022-01-13T23:43:58Z")

</div>

@crativ2000 why are you posting on this 3 year old thread when you have not replied to my message posted 5 hours ago?

> [@Implementing virtual Serial port communication: java with node-red (The Figures are attached in subsequent postings)](https://discourse.nodered.org/t/implementing-virtual-serial-port-communication-java-with-node-red-the-figures-are-attached-in-subsequent-postings/56278/26):
>
> 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 { "topi…

---

_[View the full topic](https://discourse.nodered.org/t/splitting-a-msg-line-with-split-or-function/9636)._
