◷ Reading Time: 2 minutes
As the REST API decision service consumer, you can specify the format of the output field in the body of the JSON response.
The output field is a collection of name-value pair based on the model’s output parameters.
When you specify the formatter as a URL parameter, you can format the output in the response body according to the specified formatter.
If formatter is not specified, it returns string values (default behavior), same as formatter=string.
Currently this applies across Azure, AWS and Google deployment.
Support Formatter Types
- object (a JSON)
- numeric
- bool
- string
Example:
Default Service Response Format
When you didn’t specify formatter:

formatter=object
When formatter is set to object, value in the response body will be formatted as a valid JSON value:
