JSFiddle - React, Tailwind, and code Playground by Kishore Sahasranaman September 05, 2015 HTML <textarea rows="4" cols="50"> At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies. </textarea> JavaScript var data = {"id" : -1}; jQuery.ajax({ url:"http://jsonplaceholder.typicode.com/posts/1/", method: "get", data: data, success: function(data) { $("textarea").val(JSON.stringify(data)); }, error: function(){ alert("Wystąpił nieoczekiwany problem!"); } });