The source dataset has one of the Json files:
Match the condition requirement in the If Condition activity. then copy the section metadata{...} to sink. It works but it copied the entire JSON file to the sink. I don't know how to copy metadata parent, including children nodes to sink. I want the result json file only have record{ metadata } only in Sink see image: