Welcome to Zuora Product Documentation

Explore our rich library of product information

JSON transformations

This topic outlines various JSON transformations, including setting strings, JSON objects, booleans, numbers, and truncating strings or arrays.

The following transformations are available for JSON feature rules:

  • No Transformation - Allows access to the content being served by the CMS. No changes are made to the content.

  • Set String - Allows you to enter a value to set the targeted objects to a string. This is applied to the target, as it is an object operation, and the target object is replaced with the configured string.

  • Set JSON - Allows you to target an object and replace it with a valid JSON object. This is applied to the target, as it is an object operation, and the target object is replaced with the configured JSON entity.

  • Set Boolean - Allows you to target an object and replace it with a boolean. This is applied to the target, as it is an object operation, and the target object is replaced with the configured boolean value.

  • Set Number - Allows you to target an object and replace it with a number.

  • Truncate String - Allows you to truncate a string by providing a target property name, and specifying the number of words at which you want to truncate.This is applied to a property of the target object.

  • Truncate Array - Allows you to truncate a string by providing a target property name, and specifying the number of array values at which you want to truncate. This is applied to a property of the target object.

For further information on these decision nodes, see the Transformations topic.