JSFiddle - React, Tailwind, and code Playground

by mattography

HTML

<div class="response"></div>

JavaScript

var myJSONsuccess = function (JSONobj, StatusString, jqXHR) {
    //you probably will not need StatusString and jqXHR, so ignore them

    //There is no need to parse JSONobj. It is already parsed because of
    //dataType: "json"
    //in your ajax-command

    //This is SQUARE:
    var squ = JSONobj.entity.entries.SQUARE;

    //This is one of its properties:
    var oriet = JSONobj.entity.entries.SQUARE.orientation;

    //alternatively you can write:
    var oriet = squ.orientation;
    //this is exactly the same
};

jQuery.ajax({
    method: "PUT",
    dataType: 'json',
    callback: null,
    url: urlLocation,
    data: saveImage,
    success: myJSONsuccess,
    error: function (data) {
        $(".share-link").html("<div class='alert alert-danger'><p>Couldn't send photo: <b>" + imageid.value + "</b></p></div>");
    }
});