Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomRESTClient.ExecuteJson

function ExecuteJson(const aMethod, aPath, aBody, aContentType, aIdempotencyKey: string; out aStatus: Integer; out aJson: tJsonValue): Boolean;
Execute, then parse the body as JSON. aJson is nil when the body was empty or unparseable; the caller owns and frees it. The HTTP status is still reported - a 4xx with a JSON error body parses like any other.