Hello @Singh Gunveen
To split a JSON file into smaller files with values of keys when all keys are different using ADF, you can use the following steps:
- Create a pipeline in ADF with a Copy activity as the source.
- In the Copy activity, set the source dataset to the JSON file in blob storage.
- Set the source file format to JSON format.
- In the Copy activity, set the sink dataset to a folder in blob storage where you want to store the smaller files.
- Set the sink file format to JSON format.
- In the Copy activity, set the mapping to extract the values of the keys inside Result.
- Use the JSONPath expression to extract the values of the keys inside Result.
- Use the forEach activity to iterate over the values of the keys inside Result.
- In the forEach activity, use the Copy activity to write each value to a separate file in the sink folder. Here is an example of the JSONPath expression that you can use in the mapping to extract the values of the keys inside Result:
$.Result.*.*
This expression will extract all the values of the keys inside Result.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.