[Solved] how to get the items base in json objects


It seems like this should work for you:

$.ajax({
        type: "POST",
        contentType: "application/json",
        url: "ManualOfferEx.aspx/OnSubmit",
        data: JSON.stringify(data),
        dataType: "json",
        success: function (result) {
            console.log(result);
            var data = result.d;
            var success = data.Success;
            var message = data.Message;
            console.log(message);
        },
        error: function (xhr, err) {
            console.log("readyState: " + xhr.readyState + "\nstatus: " + xhr.status + "\nresponseText: " + xhr.responseText);
        }
    });

Also, you had a call to ko.toJS(). You only need to do that if you’re trying to convert a Knockout model/object to a JS object. Since you’re doing an Ajax call, the result of the call is already a JS object.

solved how to get the items base in json objects