03-12-2024 02:45 PM
Can anyone please help me to format the below json.
Source
Input:
sampledata : {
Key 1: Name,
Key2: John
},
{
Key 1: Name,
Key2: Simon
}
Output:
sampledata:{
Name: John
},
{
Name: Simon
}
Please let me know if there is any difficulty to understand the requirement.
03-13-2024 05:33 AM
Try with the following Mapping in a Mapper Snap:
Let me know if this helps you. 🙂
03-14-2024 08:13 AM
If you want something a tad more generic and you know that you'll always have a Key 1 and Key 2 field, then you could use an expression like this.
{[$["Key 1"]]: $["Key 2"]}