JavaScript
Ответы
например c помощью метода fetch()
const text = JSON.stringify(data); $.ajax({ type: "POST", url: "url", dataType: "json", data: { data: text }, success: function (data) { alert('Success'); }, error: function () { alert('Error'); } });
<a rel="nofollow" href="https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started" target="_blank">https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX/Getting_Started</a>