I am trying to pass a javascript object generated by my network node to json format.
The object script that is obtained is an hour and minutes that is written on the screen, for example "13:02"
I want to get a json type {"hora" : "hh:mm"}
This is the code:
msg.payload = hour+':'+minute;
return msg;