Refactoring and avoid boilerplate code

@viavansi/movilidad 
if(json!=null)
{
json=json.replace("\"","");
}