title: Replacing a number variable in json using groovy
body: <p>I have a json which has some numbers that I want to make dynamic and replace the value using groovy. Please let me know if there is a better way as I have already used toInteger to convert but not working.
  For ex
  {
     jobName:"",
     protocolName:"tcp",
     portNo:""
  }
  I am able to replace the job-name which is string using replace in groovy but I am not able to replace the port number. The final json should look like below</p>
  
  <p>{
     jobName:"myjob",
     protocolName:"tcp",
     portNo:1112
  }</p>
  
  <p>Please let me know if there is a way to do that in groovy</p>