Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

Executes the request and returns the result as object asynchronously.

Promise<object> myRestRequest.ExecuteJsonAsync()

Remarks

Unlike RestRequest.Execute method this method verifes the server status code is returned as OK ( HTTP 200 ). If not exception is thrown.

Example

Code Block
languagets
var client = $Rest.Create('http://targetserver');

var request = client.Request();

request.AddParameter('x', 1);

request.ExecuteJsonAsync().then(function(result) {
    // ..
});