Support Article
Issue with mapping if JSON is an array of objects
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
- Create a sample activity to set parameters for data transform including the JSON array data
- Create a data transform to deserialize the content
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.