body

Type: String

The body property of the JadeRestRequest class contains the serialized object (in JSON or XML format) that is to be included in the HTTP body of the REST request. This property defaults to null (that is, an empty string) and is required only when an object is to be included in the HTTP body; for example, for PUT or POST requests.

You can set this property using the addObjectParam method, which serializes an object into JSON (Microsoft), JSONN (NewtonSoft), or XML format according to the value of the dataFormat property. If the dataFormat property is not set or it is set to any other value, the object is serialized into JSON format by default.

You would normally set the body using one of the JadeRestRequest class methods (for example, the addObjectParam method) so that the serialization is all done for you. Although it is easier to use the JadeRestRequest class methods, you can also manipulate the body directly, if required.

2020.0.01 and higher