Welcome to the forum @muhammedsuhail1997
You need to look at the Join node.
Here is an example where a complicated message is split into multiple messages which are processed individually and then rejoined into a single javascript object.
This uses the "Automatic" mode of the Join node, there is also "Manual" for more control.
The input and output look like this
You can import it and take a look:
`[{"id":"9dd5bcdfb8b59d06","type":"inject","z":"69db689bc6253632","name":"Go","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":80,"wires":[["6e4727f550db7b84"]]},{"id":"740ae4dc592edbda","type":"split","z":"69db689bc6253632","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"topic","property":"payload","x":110,"y":180,"wires":[["7a167b77db192767"]]},{"id":"86f61adf90e5f808","type":"join","z":"69db689bc6253632","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":690,"y":200,"wires":[["84772704d0e77550"]]},{"id":"84772704d0e77550","type":"debug","z":"69db689bc6253632","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":200,"wires":[]},{"id":"6e4727f550db7b84","type":"template","z":"69db689bc6253632","name":"Sample data","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\"standingcharge\":60.75,\n\"dayrate\":26.65,\n\"nightrate\":11.83\n}","output":"json","x":250,"y":80,"wires":[["740ae4dc592edbda","bf37946f6072dcf7"]]},{"id":"bf37946f6072dcf7","type":"debug","z":"69db689bc6253632","name":"Input","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":810,"y":80,"wires":[]},{"id":"7a167b77db192767","type":"switch","z":"69db689bc6253632","name":"","property":"parts.key","propertyType":"msg","rules":[{"t":"eq","v":"dayrate","vt":"str"},{"t":"eq","v":"nightrate","vt":"str"},{"t":"eq","v":"standingcharge","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":250,"y":180,"wires":[["ca6366acdb26ad51"],["28e0439e8a916acf"],["6eaa9842a343dc44"],["86f61adf90e5f808"]]},{"id":"ca6366acdb26ad51","type":"function","z":"69db689bc6253632","name":"Add 10% to dayrate","func":"msg.payload *= 1.1\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":100,"wires":[["86f61adf90e5f808"]]},{"id":"28e0439e8a916acf","type":"function","z":"69db689bc6253632","name":"Add 20% to nightrate","func":"msg.payload *= 1.2\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":140,"wires":[["86f61adf90e5f808"]]},{"id":"6eaa9842a343dc44","type":"function","z":"69db689bc6253632","name":"Decrease standingcharge","func":"msg.payload = 24\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":180,"wires":[["86f61adf90e5f808"]]}]`