To push object into array with JavaScript, we use the push method.
For instance, we write
const nietos = [];
nietos.push({ "01": nieto.label, "02": nieto.value });
to call nietos.push with an object to append it has the last item of the nietos array.