Skip to main content

Improve the performance of DX APIs and automation-based REST services by using JSON (8.6)

Suggest edit Updated on May 13, 2021

Improve the performance of your DX APIs and automation-based REST services by configuring JSON inputs and outputs in an automation rule. The automation then passes the JSON object directly to the REST service instead of transforming the data on a page to JSON first. This enhancement also makes it easier to call an automation from an activity.

When you configure a JSON input or output, you provide a valid OpenAPI-specific .yaml file that the system generates in the Swagger documentation of the REST service, as shown in the following figure:

JSON schema configuration in an automation rule

To preview the data structure of the JSON sample, you can simulate a JSON response in the automation rule and update the JSON sample if needed, as shown in the following figure:

JSON sample response on the Implementation tab of an automation rule

For more information, see Configuring validation for text inputs and outputs in automations and Simulating a JSON response in automations.

Did you find this content helpful? YesNo

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us