You did not use the </> button when posting as i asked.
Have you tried trimming the string?
e.g.
[{"id":"d556411065ad6217","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"data\":{\"Temperatura\":22964,\"Umidade\":23476}}","payloadType":"str","x":150,"y":3980,"wires":[["c6b3048da8f259f9","37ac30dcdea7deb2"]]},{"id":"c6b3048da8f259f9","type":"debug","z":"da8a6ef0b3c9a5c8","name":"debug 226","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":590,"y":3820,"wires":[]},{"id":"37ac30dcdea7deb2","type":"function","z":"da8a6ef0b3c9a5c8","name":"function 20","func":"msg.payload = msg.payload.trim();\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":350,"y":3980,"wires":[["390eff7019b8b578"]]},{"id":"390eff7019b8b578","type":"json","z":"da8a6ef0b3c9a5c8","name":"","property":"payload","action":"","pretty":false,"x":530,"y":3980,"wires":[["c6b3048da8f259f9"]]}]
If that works then you definitely have junk chars at end.