1. Home
  2. FlexRule Designer
  3. Publishing a Project
  4. Serializing the Decision Service API Response

Serializing the Decision Service API Response

◷ 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
Default Service Response Format

When you didn’t specify formatter:


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

URL formatter
Updated on November 16, 2023

Was this article helpful?

Related Articles