Thanks for the replies :thumbs_up_light_skin_tone:
I’ve got the bytes string converting to a number, so that’s all good. Now the next question, @Bugsounet how do I use your function within the JSON.parse function?
var payload = JSON.parse(payload, function (key, value) {
if ( key === 'down_rate' ) {
var num = Number(value);
return (num/(1024*1024)).toFixed(2);
}
Just to add, I had tried the following and receive a this.convert is not a function
var downrate = this.convert(value,0);
return downrate;