$(document).ready(function(){
    $("#one_post").click(function(){
        var obj = document.getElementById("post");
        var theName = obj.value;
        var x = JSON.parse(theName);
        console.log(theName);
        jQuery.ajax( {
            url: 'https://api.yaas.io/product/v3/tutorialinjs/products',
            type: 'POST',
            data: JSON.stringify(x),
            contentType:"application/json",
            beforeSend : function( xhr ) {
                var id = "Bearer " + $('#token').html();
                xhr.setRequestHeader( "Authorization", id);
                xhr.setRequestHeader("Content-Type", "application/json");
            },
            success: function(response) {
                //alert("Success!" + response.id + response.link);
                $('#get_response').html("Success!" + "\nid: " + response.id + "\nlink: " + response.link);

            }
        } );
    });
});
@@ -1,8 +1,379 @@
+/*%0A * %5By%5D hybris Platform%0A *%0A * Copyright (c) 2000-2015 hybris AG%0A * All rights reserved.%0A *%0A * This software is the confidential and proprietary information of hybris%0A * (%22Confidential Information%22). You shall not disclose such Confidential%0A * Information and shall use it only in accordance with the terms of the%0A * license agreement you entered into with hybris.%0A */%0A%0A
 $(docume
@@ -1289,8 +1289,9 @@
  %7D);%0A%7D);
+%0A

Update post_ajax.js