PHP in post.PRE_PROCESS script to modify payload

Hi I’m using dreamfactory as REST API backend to insert data into mysql database.
I need to modify my payload befor it will be insert into database. Expecially I nedd to modify my payload from:




How can I implement a pre_process script in a post request in php language that can acive my request ?