What does "[Ljava.lang.Object; @" mean?

I am filling out a google spreadsheet from a form. The code writes some information to the spreadsheet, it always does it right, but before writing what it should, it writes [Ljava.lang.Object;@1c7aa4fc

(or something like that) to the last row in the spreadsheet. Why does he show up there?

Code to write to spreadsheet:

for (var p = 1; p < data.length; p++) {
    var ppopis = data[p][2]; 
    var sstav = data[p][7];
    var ukonceno_dne = data[p][9];
    var cell = spred2.getRange("H"+(p+1));
    var celll = spred2.getRange("J"+(p+1));
    if(nadpis_pole == ppopis && vlozena_hodnota == "Zrušeno") {
      cell.clear();
      cell.setValue("Zrušeno");
      if(ukonceno_dne == "" || ukonceno_dne == null){
        celll.setValue(dnesni_datum);
      }
    } else if (nadpis_pole == ppopis && vlozena_hodnota == "Vráceno") {
      cell.clear();
      cell.setValue("Vráceno");
      if(ukonceno_dne == "" || ukonceno_dne == null){
        celll.setValue(dnesni_datum);
      }
    }
  }

      

Thank:)

+3


source to share


1 answer


The script application has a basic data structure built in java ... Ljava.lang ..... is an object notation in Java to specify any object like Array, JSON to GAS. Get the actual try toString () (or) JSON.Stringify () and check if you have a value.



+2


source







All Articles