const json = JSON.stringify(array)
fetch("/newarray", {
method: "POST",
body: json,
contentType: "application/json"
})
const express = require("express");
app.use(express.json())
app.post('/newarray', function(req, res) {
console.log(req.body);
})