how to remove specific text in a [message box]?
hi,
There's a part of my project that need some string processing in max msp.
I am using MQTT to recieve some JSON information.
However the income message include some specofic texts in the massage box I dont need, and I have no idea how to deal with it.
I just start using max msp for 2 weeks and there's obviously a lot to learn. Need some help ! Thanks a lot!
(the mqtt patch I am using right now :) https://github.com/256dpi/max-mqtt#readme
Here is what i want to do:
(income message)
/IAR5130/hsuhc/assign/spaceHA109 "{\"time\": \"12:00\", \"name\": \"yclee\", \"point\": \"12,22,23\"}" 0 0
(the result I need)
{"time": "12:00", "name": "yclee", "point": "12,22,23"}
you are looking for second item in the list.
the result you extract will depend what form you need at the end.
all that backslashes are needed to keep text formating.
if all you need is EXACT visual feedback as stated, this would do:
(the result I need)
{"time": "12:00", "name": "yclee", "point": "12,22,23"}

but any list processing if needed will be a different story.
If you are not forced to use all that when sending the data, reduce it
to simple informations, without all unneeded symbols.