Get data with header

when i try to get a data i am getting in this format , even the getsoucrcedata also showing same
[[“11”,“12”],[“21”,“22”]]


But result I am expecting is

[{“A”:“11”,“B”:“12”},{“A”:“21”,“B”:“22”}]

Hi @MZ1000_1

here’s a demo https://jsfiddle.net/AMBudnik/m7y4k5c1/

This function returns the data as objects

  function getObjData(){
  	var arr = [];
    for(var i = 0; i < hot.countRows(); i++){
    	arr.push(hot.getSourceDataAtRow(i))
    }
    console.log(arr);
    return arr
  }

Hi @MZ1000_1

was that helpful? If you have any additional questions feel free to ask.