I'm getting an object as a parameter, eg "4,5" from a function, but I need to change the comma by one point. Qnd I do this, the object is changed to string, so I need to return that string to object again. I'm trying to get the following code:
var teste = JSON.stringify(editableObj.innerHTML);
teste = teste.replace(/\,/g, '.');
var obj = JSON.parse(teste);
alert(typeof(obj));