Overview
Executes the request and returns the result as object.object myRestRequest.ExecuteJson()
Remarks
UnlikeRestRequest.Executemethod this method verifes the server status code is returned as OK ( HTTP 200 ). If not exception is thrown.
Example
var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddParameter('x', 1); var result = request.ExecuteJson();
Examples
var client = $Rest.Create('http://targetserver'); var request = client.Request(); request.AddParameter('x', 1); var result = request.ExecuteJson();