Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Issue with mapping if JSON is an array of objects

SA-102160

Summary

User sets values from JSON string to the Clipboard. The mapping works without any issue for a JSON object. However, mapping does not happen if JSON is an array of objects instead of just an object. 


Error Messages

Data not set on Clipboard


Steps to Reproduce

  1. Create a sample activity to set parameters for data transform including the JSON array data
  2. Create a data transform to deserialize the content
  3. Execute the activity


Root Cause



A software use or operation error.

Resolution



Perform the following local-change: 
Use the below JSON format:

"{\"PageListProperty\":
[{\"SubscriptionId\":\"test\",\"Resource\":\"testresc\"}]}"


Note- Use the below JSON format when used in the data transform to map the JSON data to the Clipboard properties:

"[{\"resource\":\"testresc\",\"subscriptionId\":\"test\"},
{\"subscriptionId\":\"id2\",\"resource\":\"testresource\"}]"




 

Published February 26, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

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

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice