Here is an example of accessing different properties in a payload in a gauge and text node.
msg.payload.temp holds the temperature value 20 and msg.payload.text holds the string for the ui text node.
[{"id":"d768963a.3a79d","type":"inject","z":"c74669a0.6a34f8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"temp\":20,\"text\":\"her is some text\"}","payloadType":"json","x":130,"y":2960,"wires":[["dc2de9a2.425a88","f9b3ccf.c67f6b"]]},{"id":"dc2de9a2.425a88","type":"ui_text","z":"c74669a0.6a34f8","group":"8b5cde76.edd58","order":9,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload.text}}","layout":"row-spread","x":320,"y":3000,"wires":[]},{"id":"f9b3ccf.c67f6b","type":"ui_gauge","z":"c74669a0.6a34f8","name":"","group":"8b5cde76.edd58","order":8,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{msg.payload.temp}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":280,"y":2940,"wires":[]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]