/*
    Original Request:
    {
      "name":"Apinizer"
    }
*/
import groovy.json.JsonSlurper;
import groovy.json.JsonOutput;

def jsonSlurper = new JsonSlurper();

def jsonMessage = jsonSlurper.parseText(requestBodyTextFromClient);

jsonMessage.put("fullName", jsonMessage.ad + " Api Management");

requestBodyTextToTargetAPI=JsonOutput.toJson(jsonMessage);


/*
    New Request:
    {
      "name":"Apinizer",
	  "fullName":"Apinizer Api Management"
    }
*/
GROOVY