Thanks, @UnborN. I think I figured it out. Added split node from Array then switch node to change msg.payload = msg.payload.state and join. Viola.
[{"id":"b4101700.63b118","type":"debug","z":"bf354502.549c58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1130,"y":1140,"wires":[]},{"id":"538d44ce.3173ec","type":"join","z":"bf354502.549c58","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":910,"y":1140,"wires":[["b4101700.63b118"]]},{"id":"e243b109.cf2a","type":"split","z":"bf354502.549c58","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":570,"y":1140,"wires":[["ef7bfa9.ce70b08"]]},{"id":"ef7bfa9.ce70b08","type":"change","z":"bf354502.549c58","name":"Change State","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.state","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":1140,"wires":[["538d44ce.3173ec"]]}]