Parsing only a body string from and object

Hey, I have payload object with a body property of string. I want to covert the body to json object. I'm trying to use the JSON node to convert the string to an object which works great. My problem is parsing out the body. I'm trying to use the SPLIT node but it parses out everything which blows my JSON node up . I can't figure out a good method of just sending the body string to the JSON node.. Thanx for any help!



If i understand you right you can use a change node to set msg.payload to just the body property. Copy the path of the body property from the debug and use that in the change node as set msg.payload to msg.payload.headers.body.


Thats exactly what i needed. Thanx!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.