Fix json string and use util method in jenkins.rake