Convert message to JSON problem

#1

Hello,

I'm trying to convert string to JSON. The string is a message which Node Red receives via UDP.
The message is:
{"method": "GET", "address": "192.168.0.14/api/getdata"}
Debugger says - "Unexpected token in JSON at position 57"

Have you got any ideas how to handle this?

Thanks!

#2

are you sure it’s a string what you have shared appears to be a javascript object.

What is your flow? If you send it straight from the UDP node to the debug what does it show?