Skip to main content

Control empty behavior in your JSON data transform (8.5)

Suggest edit Updated on May 3, 2021

Using JSON data transform serializer mapping, you can configure empty behavior states to control the mapping results for conditions when a property does not exist, exists with an empty value, or exists with a non-empty value. This functionality provides the following enhancements:

  • Fields that contain empty values, or that do not contain values will be configured with standard empty behavior options, reducing the types of descriptions for empty behavior values.
  • Fields that contain default values will maintain the preexisting values, preventing backward compatibility issues with releases that precede Pega Platform™ 8.5.  

Default auto-map empty behavior now includes the following configuration choices:

  • Default value – The serializer maintains the preexisting value. This configuration supports backward compatibility with releases that precede Pega Platform™ 8.5.
  • Null – Represents a null value in JSON when the associated ClipboardPage or ClipboardProperty exists with an empty value or does not exist.
  • Skip – Skips mapping in JSON when the associated ClipboardPage or ClipboardProperty exists with an empty value or does not exist.

Configure the Empty behavior field as shown in the following figure:

Configuring the Empty behavior options for a data transform.

For more information, see Configuring a data transform

Did you find this content helpful? YesNo

50% found this useful

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