To push to an array with JavaScript, we use the push method.
For instance, we write
const json = [{ cool: "34.33" }, { alsocool: "45454" }];
json.push({ coolness: "34.33" });
to call json.push with an object to append it as the last item of the json array.