You can use JavaScript Object Notation (JSON) to format parameters in the message body of an Oracle ATG Web Commerce platform REST Web Services request.

Enclose the parameters in standard JSON format as shown in the example below. Include each parameter in a separate name and value pair. Use the name of the parameter as the name for the pair. For positional parameters that do not have names, use the arg1, arg2, arg3 convention as the names for the pairs. See Positional Parameters.

{
  "arg1": "MyUsername",
  "arg2": "MyPassword",
  "atg-rest-user-input": "MyMessageId"
}

Make sure that you specify Content-Type: application/json in the HTTP message. See Setting the Content-Type Value.

The following example shows numeric parameter input using JSON markup.

curl -v -b cookies.txt -X POST \
-H "Content-Type: application/json" -d "{ "arg1" : 4 }" \
http://myserver:8080/rest/bean/atg/rest/Configuration/maxDepthAllowed